Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 782 Bytes

File metadata and controls

18 lines (11 loc) · 782 Bytes

National Green Infrastructure Facility

Tests

Plotly Dash app to visualise and download NGIF sensor data

Usage

docker run -p 80:5000 --env MONGO_URI=mongodb://username:password@hostname:27017/database?authSource=admin --env GUNICORN_CMD_ARGS="--bind=0.0.0.0:5000" --name ngif fmcclean/ngif

For HTTPS use:

docker run -d -p 443:5000 --env MONGO_URI=mongodb://username:password@hostname:27017/database?authSource=admin --env GUNICORN_CMD_ARGS="--bind=0.0.0.0:5000 --certfile=/cert/cert.cer --keyfile=/cert/key.key" -v /home/user/cert:/cert --restart always --name ngif fmcclean/ngif

Dependencies

pip install -r requirements.txt

Tests

python -m unittest