diff --git a/README.md b/README.md index 305035f..0a5f67a 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,25 @@ docker run -d --name hastic-server -p 80:8000 -e HASTIC_API_KEY= +} +``` + +`status` field can be one of: +- `alert` +- `OK` #### Dependencies +- git - python3 with: - - pip - pandas - seglearn - scipy @@ -44,10 +58,11 @@ You can export following environment variables for hastic-server to use: Example of running hastic-server on Debian / Ubuntu host: ``` -$ git clone https://github.com/hastic/hastic-server.git $ export HASTIC_API_KEY= $ export HASTIC_PORT= -# apt-get install python3 \ +$ export HASTIC_ALERT_ENDPOINT=http://alert.example.com +# apt-get install \ + python3 \ python3-pip \ gnupg \ curl \ @@ -60,6 +75,7 @@ $ pip3 install scipy $ pip3 install tsfresh $ curl -sL https://deb.nodesource.com/setup_9.x | bash - # apt-get update && apt-get install -y nodejs +$ git clone https://github.com/hastic/hastic-server.git $ cd hastic-server/server $ npm install && npm run build $ npm start