covid-ca is an application that pulls COVID-19 data together from the provinces and territories of Canada for storage in a database and exposure via JSON and visualizations.
Currently the application grabs, stores and exposes a JSON representation of daily COVID-19 summary data from the province of Ontario
- Python 3.6+
- Postgresql
- Clone repo
- Set up python environment
- Set up python virtual environment
python3 -m venv venv-covid-casource venv-covid-ca/bin/activate
- Install requirements
pip install --upgrade pippip install -r requirements.txt
- Set up python virtual environment
- Start database server and create database
brew services start postgrescreatedb covid-ca
- Set up application environment
cp example.env .env- change
DATABASE_URLin .env to match your local connection information
- Seed data
- Pull data for the first time
foreman run get_ontario_daily.pyforeman run get_canada_daily.py
- Run web server
foreman start
- View
http://localhost:5000/in browser to test. You should the latest daily report for Canada
- Pull data for the first time