Skip to content

nss10/Virus-contact-map-public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[ReadMe file In-progress]

Virus-contact-map-public

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.

Requirements

  1. Python 3.x
  2. Pip
  3. MongoDB
  4. NodeJs

How to setup

  1. 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

  2. Install flask server and set the environment variable FLASK_APP to API.py

  3. Run pip install -r requirements.txt or python3 -m pip -r requirements.txt from the python directory

  4. Run preprocess.py using Python3 to fetch and update all database records in MongoDB.

  5. Run Flask Server using python3 -m flask run from the python directory

  6. Intialize the npm server from the root directory by using the command npm update

  7. Run NodeJs server using npm start from the root directory

  8. 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

Working with Mobility Data

  • 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 = [] 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •