Skip to content

Repository files navigation

covid-ca

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

Dependencies

  • Python 3.6+
  • Postgresql

Installation

  1. Clone repo
  2. Set up python environment
    • Set up python virtual environment
      • python3 -m venv venv-covid-ca
      • source venv-covid-ca/bin/activate
    • Install requirements
      • pip install --upgrade pip
      • pip install -r requirements.txt
  3. Start database server and create database
    • brew services start postgres
    • createdb covid-ca
  4. Set up application environment
    • cp example.env .env
    • change DATABASE_URL in .env to match your local connection information
  5. Seed data
    • Pull data for the first time
      • foreman run get_ontario_daily.py
      • foreman 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

About

Pulls COVID-19 data together from the provinces and territories of Canada for storage in a database and exposure via JSON and visualizations. This is *not* a product of the Government of Canada.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages