/api/v0/latest- retrieve the current state of the dashboard in JSON format/api/v0/history- retrieve all the prior states of the dashboard
Locally running this application should be pretty simple.
- (optional) Use a virtualenv
- Why use a venv? It isolates your dependencies and helps prevent version conflicts with other projects or system dependencies.
 
python3 -m venv venvwill create a venv in a directory named venvsource ./venv/bin/activatewill activate the venv
 - Install dependencies
 
pip install -r requirements.txt
- Run the app
 
gunicorn poller:APP --bind=localhost:5000
- Scream because the database won't work because that's hard and I wrote this really poorly (rewrite soon(tm))
 - Visit localhost:5000 in your web browser.
 
This demo uses pylint.
Travis CI will automatically run pylint on commits and PRs, but you can also run pylint manually, using pylint poller.
The pylint_quotes plugin is loaded by the pylintrc and will ensure standardised quotation mark formats.