This tool consumes the official COVID-19 dashboard of Puerto Rico JSON source every hour and keeps tracks of changing metrics in order to help visualize and measure progress. Data is also made available in CSV and JSON formats.
Before running this project locally you need to have MongoDB installed.
To install the project's Python dependencies you can user the requirements.txt
or the project's Pipfile
using Pipenv.
Using Pip:
> pip install -r requirements.txt
Using Pipenv
> pipenv install --three
To run the Flask app execute:
> MONGODB_URI='mongodb://localhost/tracking-covid19-pr' FLASK_DEBUG=1 FLASK_APP=app/app.py flask run
To run the JSON scrapper execute:
> MONGODB_URI='mongodb://localhost/tracking-covid19-pr' python -m app.scraper