|
|
@ -44,6 +44,7 @@ You can export following environment variables for hastic-server to use: |
|
|
|
Example of running hastic-server on Debian / Ubuntu host: |
|
|
|
Example of running hastic-server on Debian / Ubuntu host: |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
$ git clone https://github.com/hastic/hastic-server.git |
|
|
|
$ export HASTIC_API_KEY=<your_grafana_api_key> |
|
|
|
$ export HASTIC_API_KEY=<your_grafana_api_key> |
|
|
|
$ export HASTIC_PORT=<port_you_want_to_run_server_on> |
|
|
|
$ export HASTIC_PORT=<port_you_want_to_run_server_on> |
|
|
|
# apt-get install python3 \ |
|
|
|
# apt-get install python3 \ |
|
|
@ -59,7 +60,7 @@ $ pip3 install scipy |
|
|
|
$ pip3 install tsfresh |
|
|
|
$ pip3 install tsfresh |
|
|
|
$ curl -sL https://deb.nodesource.com/setup_9.x | bash - |
|
|
|
$ curl -sL https://deb.nodesource.com/setup_9.x | bash - |
|
|
|
# apt-get update && apt-get install -y nodejs |
|
|
|
# apt-get update && apt-get install -y nodejs |
|
|
|
$ cd server |
|
|
|
$ cd hastic-server/server |
|
|
|
$ npm install && npm run build |
|
|
|
$ npm install && npm run build |
|
|
|
$ npm start |
|
|
|
$ npm start |
|
|
|
``` |
|
|
|
``` |
|
|
|