/Covid19Dashboard-EagleEye

First place in Call For Code 2020 AN/Z region. Smart Population and Activity monitoring solution. (WebApp)

Primary LanguageTypeScript

Covid-19 Solution

Getting Started

To setup the environment and get the code running follow the steps below.

Built With

Major Frameworks that this project is built on.

Prerequisites

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

Installation

  1. Clone the repo
    git clone https://github.com/arnavgarg123/Covid19Dashboard.git
  2. Install NPM packages
    1. Inside Covid19Dashboard Directory run -
      npm install
    2. Inside Covid19Dashboard/server directory run -
      npm install
  3. 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
  4. Setup MongoDB by creating a database named Covid and 2 collections -location and user. To access admin functionallity make sure to add a user with email as admin and any password in feild Password.

Usage

After completeing the installation follow the steps below to get the app up and running.

  1. Run the Python server located in Covid19Dashboard/server/pyserver directory.
    python proximity.py
  2. Run the NodeJS server located in Covid19Dashboard/server directory.
    node index.js
  3. Run the Angular 8 code inside Covid19Dashboard directory.
    ng serve --proxy-config proxy.conf.json
  4. Open your browser (preferably google chrome) and visit -
    http://localhost:4200/