Skip to content

This is Micro Project on Hospital and their Ventilator's Management System

Notifications You must be signed in to change notification settings

krish2kdev/Ventilator_Tracker_API

Repository files navigation

Building Inventory Tracking System for Ventilators

This is Micro Project where CRUD operations are executed on Ventilators' status in Hospitals

TECH STACK

Nodejs MongoDB

PREREQUISITES

  • Installation of Node.js and MongoDB
  • Importing the Express server
  • Executing using Postman API

WHAT EACH FILE DOES

  1. server.js
  • validates the user's login credentials
  • If these credentials are correct, then the user can access index.js
  1. middleware.js
  • authenticates user while accessing the site.
  1. index.js
  • It is the body of the rest api
  1. config.js
  • It has a secret key

GO AHEAD TO TEST THE REST-API

  • Run the index.js in that folder destination in cmd where you have cloned these files using node index.js
  • Open the postman
  • In server.js, I kept default username and password. Give those credentials to the body part of postman
  • Copy the JWT token given by the server
  • JWT token is provided only when you give the correct login credentials
  • While you visit any page, make sure that you had added the JWT token for Authorization in the headers part. Add the token in this form "Bearer JWTtoken"
  • Then start executing the CRUD operations

About

This is Micro Project on Hospital and their Ventilator's Management System

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published