[ReadMe file In-progress]
Virus Contact map is a data visualization platform to see the spread of Covid-19 over a period of time across all the counties in the state of United States.
- Python 3.x
- Pip
- MongoDB
- NodeJs
-
To set up a local version of the application, one needs to clone the repository and change the credentials of the database in config.py
-
Install flask server and set the environment variable FLASK_APP to
API.py
-
Run
pip install -r requirements.txt
orpython3 -m pip -r requirements.txt
from the python directory -
Run preprocess.py using Python3 to fetch and update all database records in MongoDB.
-
Run Flask Server using
python3 -m flask run
from the python directory -
Intialize the npm server from the root directory by using the command
npm update
-
Run NodeJs server using
npm start
from the root directory -
Once Both Flask and Node servers are running, open browser and enter the following url in the address bar http://localhost:3000 to access the application
- Google's mobility data is a public database that can be downloaded from here - Google Mobility Data
- It is the largest dataset that is needed to be downloaded in order to complete the preprocessing part and thus has become a bottleneck for the process.
- In case you don't require Google's mobility data for your part of work, then open preprocess.py and replace
mobility_data = getMobilityData()
with
mobility_data = []