Correlation Engine for Livealytics
Docker and Docker-compose are required.
- Clone repository at
git@github.com:mtornow/ccs4dt.git
- Go into project root folder
cd ccs4dt/
- Run
docker-compose up
API is exposed at http://localhost:5000 Find API documentation here.
Stores configuration and metadata:
- Configuration for each location: How many sensors, where they are located, etc
- Metadata on Input/Output Batches (scheduled, processing, finished, failed)
Stores the actual time-series data provided by the InputBatch
InfluxDB UI is exposed at http://localhost:8086
- username: ccs4dt
- password: ccs4dt1234
All tests are in the project's /test
folder
ccs4dt
│ ...
└───tests
│ └───integration
│ └───unit
│ ...
prefix all tests with test_
and place them in /tests/integration
or /tests/unit
folder.
Run all tests with docker run api pytest
or docker exec api pytest
OpenAPI v3 specification can be found here
- Run
docker exec api /bin/bash scripts/docs/generate.sh
to generate documentation - Open the generated HTML file at
docs/_build/html/index.html
in a browser