To setup the environment and get the code running follow the steps below.
Major Frameworks that this project is built on.
This is an example of how to list things you need to use the software and how to install them.
-
npm
- First download and install NodeJS from the official site and run the bellow command to update to the latest version.
npm install npm@latest -g
-
Angular
- To install the required packages for angular code to run make sure that you have NodeJS and Angular CLI installed. To install Angular CLI run the following command.
npm install -g @angular/cli
-
MongoDB
- To get the login and registeration working you must have mongoDB installed. Install MongoDB from the official site.
- Create database as Covid and add two tables into MongoDB
- location - Stores the lat and long when user requests for help
- user - for logging into application. Create below entries for admin and user. * email - admin * Password - *****
-
Cloudant database on IBM cloud
- Create database as covidzoneclassification
- Import data provided in covidzoneclassification.json file in the project folder
- Clone the repo
git clone https://github.com/arnavgarg123/Covid19Dashboard.git
- Install NPM packages
- Inside Covid19Dashboard Directory run -
npm install
- Inside Covid19Dashboard/server directory run -
npm install
- Inside Covid19Dashboard Directory run -
- Install Python packages
conda install flask
conda install pytorch=1.2.0 torchvision=0.4.0 -c pytorch
conda install -c https://conda.binstar.org/menpo opencv
conda install pillow=6.1
pip install Flask-Cors
pip install python-resize-image
- Setup MongoDB by creating a
database
named Covid and 2 collections -location
anduser
. To access admin functionallity make sure to add a user withemail
asadmin
and any password in feildPassword
.
After completeing the installation follow the steps below to get the app up and running.
- Run the Python server located in Covid19Dashboard/server/pyserver directory.
python proximity.py
- Run the NodeJS server located in Covid19Dashboard/server directory.
node index.js
- Run the Angular 8 code inside Covid19Dashboard directory.
ng serve --proxy-config proxy.conf.json
- Open your browser (preferably google chrome) and visit -
http://localhost:4200/