Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 1.36 KB

README.md

File metadata and controls

70 lines (46 loc) · 1.36 KB

covidash

A Dashboard for the coronavirus pandemic.

Dependencies

The following are detailed instructions to setting up your python environment and running the code in this repo. We assume Python 3.7 is installed in a Ubuntu 18.04 system.

  1. Install required system packages

    sudo apt-get install python3.7-dev
    sudo apt-get install libproj-dev proj-data proj-bin
    sudo apt-get install libgeos-dev
  2. Clone the repository

    git clone https://github.com/NAMD/covidash.git path/to/clone/dir
  3. Create and activate a new Python 3.7 environment

    python3.7 -m venv covidash-env
    source covidash-env/bin/activate
  4. Install the requirements

    pip install -r requirements

Running Streamlit in the development enviroment

Link to the Streamlit Documentation.

streamlit run dashboard/app.py

Heroku configuration

Add Heroku git URL

git remote add heroku <heroku-remote>

Add Heroku buildpack for APT

Buildpack documentation.

To avoid the instalation of apt packages in every build:

heroku config:set APT_CACHING=yes
heroku buildpacks:add --index 1 heroku-community/apt

Deploy

git push heroku master