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.
-
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
-
Clone the repository
git clone https://github.com/NAMD/covidash.git path/to/clone/dir
-
Create and activate a new Python 3.7 environment
python3.7 -m venv covidash-env source covidash-env/bin/activate
-
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