Browse Source

docs++

pull/1/head
Alexey Velikiy 7 years ago
parent
commit
0f535bd26d
  1. 22
      README.md

22
README.md

@ -14,7 +14,7 @@ See also:
Server needs Grafana's API key (http://<your_grafana_url>/org/apikeys) to query data from Grafana datasources.
API key role needs only `Viewer` access.
### Docker installation
### Docker
Example of running hastic-server in Docker:
@ -23,7 +23,7 @@ docker build -t hastic-server .
docker run -d --name hastic-server -p 80:8000 -e HASTIC_API_KEY=<your_grafana_api_key> hastic-server
```
### Linux installation
### Linux
#### Environment variables
@ -38,16 +38,22 @@ You need in your system:
* [python3 python3-pip](https://www.python.org/downloads/)
* curl gnupg git make g++
### Intallation
```bash
pip3 install pandas seglearn scipy tsfresh
git clone https://github.com/hastic/hastic-server.git
cd ./hastic-server/server
npm install
npm run build
Example of running hastic-server on Debian / Ubuntu host:
```
### Run
```bash
$ pip3 install pandas seglearn scipy tsfresh
$ export HASTIC_API_KEY=<your_grafana_api_key>
$ export HASTIC_PORT=<port_you_want_to_run_server_on>
$ git clone https://github.com/hastic/hastic-server.git
$ cd hastic-server/server
$ npm install && npm run build
$ npm start
cd ./hastic-server/server
npm start
```

Loading…
Cancel
Save