Skip to content

dc-aichara/COVID19-India-Tracker

Repository files navigation


Usages

$ git clone https://github.com/dc-aichara/COVID19-India-Tracker.git # clone repository
$ cd COVID19-India-Tracker # Change directory
$ conda env create -f environment.yml  # create conda environment from `environment.yml`. Recommended. 
$ conda activate aichara
OR
$ pip install -r requirements.txt # Install dependencies in a python environment. 

Get mapbox api key from mapbox api and create a settings.ini file.

[settings]
MAPBOX_SECRET=YOUR_MAPBOX_KEY
MAPBOX_STYLE=mapbox://styles/mapbox/dark-v9

Edit data.py to use save and load data from local directory instead of Mongodb Or setup MongoDB account and credentials to settings.ini.

[settings]
MAPBOX_SECRET=YOUR_MAPBOX_KEY
MAPBOX_STYLE=mapbox://styles/mapbox/dark-v9
MGDB_pass=Your_MongoDB_Password
MGDB_user=Your_MongoDB_Username

Run App

$ python index.py

visit http://127.0.0.1:8050/ to view dashboard.

How to create Dashboard with Plotly's Dash

Read my articles on medium:

Contribute

  • Clone this repo
  • Create a new branch
  • Make changes
  • Submit a PR