Install all required libraries.
pip install -r requirements.txt
Test if you correctly installed webdrive.
python chrome_driver_test.py
Register an account in RapidAPI. Copy X-RapidAPI-Key in instruction page as your secrets.jhuapi_key.
Type in a state's name(i.e. Michigan) or a race name(i.e. Asian) or a age(i.e. 20), get the most updated covid19 info from CDC website.
python crawlCDC.py
python JHU_API.py
Uncomment Developer/Debug mode in app.py
. Run a Flask app locally. Plotly-oraca library is required to update static images.
python app.py
Comment Developer/Debug mode, uncomment Production mode in app.py
. Create a remote heroku project with random name.
heroku create
Set heroku timezone to America New York time.
heroku config:add TZ="America/New_York"
Push app to github and heroku.
git push heroku master
Open heroku web.
heroku ps:scale web=1
heroku open
Take a look at heroku log file to debug.
heroku logs --tail