Streamlit app made to display data from a personal Continuous Glucose Monitor data by using Nightscout's API.
Assumes working python installation and some command line knowledge (install python with conda guide).
# External users: download Files
git clone git@github.com:AlFontal/sugarboard.git
# Go to correct directory
cd sugarboard
# Run the streamlit app (will install dependencies in a virtualenvironment in the folder venv)
make run
Open your browser to http://localhost:8501/ if it doesn't open automatically.
The Makefile
and development requirements provide some handy Python tools for writing better code.
See the Makefile
for more detail
# Run black, isort, and flake8 on your codebase
make lint
# Run pytest with coverage report on all tests not marked with `@pytest.mark.e2e`
make test
# Run pytest on tests marked e2e (NOTE: e2e tests require `make run` to be running in a separate terminal)
make test-e2e
# Run pytest on tests marked e2e and replace visual baseline images
make test-e2e-baseline
# After running tests, display the coverage html report on localhost
make coverage