Giter Site home page Giter Site logo

hospital-api's Introduction

Hospital - API

  • This Application is used in covid times to generate and track the status reports of the patients.
  • NodeJs, expressJs and mongoDB technologies are used in creation of this application.

Usage:

  • This Application has 6 endpoints.
  • /doctor/register : used to register the doctors in the application.
  • /doctor/login : for doctors to login and get the jwt token.
  • /patient/register : for registering the patients.
  • /patient/:id/generateReport : for creating the reports for patient of given id.
  • /patient/:id/all_reports : list all the reports of the patients of given id.
  • /report/:status : gives all the reports with given status.

Folder Structure

Hospital-API | | | |--->config---->|--->mongoose.js | |--->passportLocal.js | | | |-->doctorController.js |--->controllers-->|-->patientController.js | |-->reportController.js | | | |-->doctor.js |--->models---->|-->patient.js | |-->report.js | | | |-->doctorRoutes.js |--->routes---->|-->indexRoutes.js | |-->patientRoutes.js | |-->reportRoutes.js | | | |-->node_modules |-->.gitignore |--> index.js |--> package-lock.json |-->package.json

How to setup the project on local system

  • Clone this project into the system.
  • Run the command npm i or npm install for installing all the required dependencies.
  • Install the mongodb in the system if not already available.
  • Now Run the command npm start.
  • Open the browser and navigate to http://localhost:8000/ to start the application.

Link:

  • http://hospitalapi-wuy9.onrender.com/
  • Use the link in postman to check the responses for the APIs.
  • Go through the routes folder and take the required API from there, append the route to the above link, add the headers, if required select Bearer token under Authorization when logged in as a doctor, provide the required data in JSON format, and you will see the response.

hospital-api's People

Contributors

afredhussain-t avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.