Add some make command info (#353)

Signed-off-by: drasko <drasko.draskovic@gmail.com>
This commit is contained in:
Drasko DRASKOVIC 2018-08-16 21:51:49 +02:00 committed by GitHub
parent 7e83b2d612
commit 1683d17830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 1 deletions

View File

@ -75,6 +75,12 @@ cd mqtt
npm install
```
Note that there is a shorthand for doing these commands with `make` tool:
```
make mqtt
```
After that MQTT Adapter can be started from top directory (as it needs to find `*.proto` files) with:
```
node mqtt/mqtt.js
@ -110,7 +116,17 @@ GOOS=linux GOARCH=arm GOARM=7 make
```
## Installing
Installing Go binaries is simple: just move them to `$GOBIN` (do not fortget to add `$GOBIN` to your `$PATH`).
Installing Go binaries is simple: just move them from `build` to `$GOBIN` (do not fortget to add `$GOBIN` to your `$PATH`).
You can execute:
```
make install
```
which will do this copy of binaries.
> N.B. Only Go binaries will be installed this way. MQTT adapter is NodeJS script and will stay in `mqtt` dir.
## Deployment