Skip to content

Commit

Permalink
Merge pull request #4 from nathzi1505/master
Browse files Browse the repository at this point in the history
Team JackNPitch
  • Loading branch information
hiteshsubnani0128 authored Apr 19, 2020
2 parents fd8e7a8 + 7695ebe commit 5c7bb4b
Show file tree
Hide file tree
Showing 111 changed files with 39,496 additions and 0 deletions.
3 changes: 3 additions & 0 deletions JackNPitch/Backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
config/
node_modules/
playground/
43 changes: 43 additions & 0 deletions JackNPitch/Backend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Team JackNPitch
### Pritthijit Nath & Shuvayan Ghosh Dastidar
#### Jadavpur University, Kolkata, India

### Unique Selling Points
#### Privacy
All user data related fields such as `name, email, phone, occupation, gender` are MD5 hashed, so that in case of an adversarial attack, user data can be kept safe.
#### HotSpot - Detection
Based on the user location, hotspots will be identified which will help medical personnel to focus more on these specific spots and take appropriate action beforehand. (ToDo)
#### SIR Model - Simulation
Medical Personnel will be able to create and analyse simulations on changing various state parameters, thereby helping them to analyse outbreak spread in both a quantitative and qualitative way. (ToDo)
#### Heightened Caution
By displaying markers in the map with labels, users will be able to visualise hotspots beforehand thus allowing them to exercise proper caution when visiting such areas.
#### Personalized Feedback
Based on the self-assessment, the risk factor is calculated thus helping the model to classify them into HighRisk or LowRisk patients, which further can help medical personnel to identify potential COVID-19 affected patients in an improved way.

## Backend
### Technology Stack Used :
1. ExpressJS
2. MongoDB

### Site : [https://jacknpitch.herokuapp.com](https://jacknpitch.herokuapp.com)

### Documentation
1. `GET /count` - Retrieves the count of users based on params
* `params : medic=true` - Retrieves the count of medical personnel in the database
* `params : users=true` - Retrieves the count of users registered in the database
2. `GET /locations` - Retrieves locations and other details of the users
3. `POST /medicalCentre` - Adds a medical centre to the database
4. `GET /medicalCentre` - Retrieves all the medical centres present in the database
5. `POST /users` - Adds a user to the database

Note: User specific routes have not been mentioned, they have been implemented as per `REST` Guidelines.


### Run in Local Machine
```
$ cd Backend
$ npm install
$ export MONGODB_URL=MONGODB_DATABASE_URI
$ export JWT_SECRET="PROGRAMMERS_DATE"
$ npm start
```
Loading

0 comments on commit 5c7bb4b

Please sign in to comment.