A simple dashboard to display up-to-date epidemiological data on COVID-19 in Montreal.
View the application at covid19mtl.ca
I'd be happy to help if you'd like to make a version of this for your own city. You can find my contact info here: jeremymoreau.com
Here are the steps to follow if you want to run COVID-19 MTL locally for testing or development purposes:
python3.8 -m venv .venv
. .venv/bin/activate
(the command is .
, meaning source or include)pip install -r requirements.txt -r requirements-dev.txt
python -m app
python refreshdata.py
We use pip-tools to make it easy to add or
change dependencies. Direct dependencies of the app are added to requirements.in
,
with version specifiers that allow bugfix updates. The command pip-compile requirements.in
writes the full list of all needed packages, with pinned versions,
to the requirements.txt
file, which is used for deployment.
To add a dependency or change the version of an existing one, edit requirements.in
and run pip-compile
, adapt the code of the app if that's needed, then commit all
changes.
The COVID-19 MTL project is available under the MIT License. The hosted version at https://covid19mtl.ca is CC BY 4.0, but you are not required to apply this license to forks of this code (though it is encouraged as a CC license will make it clear that anyone is free to copy the plots/images and post them elsewhere).