Giter Site home page Giter Site logo

codingninjas-hospital-api's Introduction

HOSPITAL API

API for hospital.

  • API for the Covid hospital for doctors, patients and reports.

Features

- Register doctors
- Login for doctors
- Register patients
- Create Covid-19 test result
- Make list of all reports of a patients
- Make list of all reports with a specified status

Database Models

- Doctor (name, mobile, password)
- Patient (name, address, mobile, reports[])
- Report (doctor, patient, status, date)

Folder Structure

- config (configuration files)
  - moongose.js (for database connection)
  - passport-jwt-strategy.js (for passport-jwt configuration)
- controllers
    - doctor_controller.js (contains controllers related to doctors)
    - patient_controller.js (contains controllers related to patients)
    - report_controller.js (contains controllers related to reports)
- models
  - doctor.js (for creating doctor database model)
  - patient.js (for creating patient database model)
  - report.js (for creating report database model)
- routes
  -api
    -v1
       - doctors.js (contains routes related to doctors)
       - patients.js (contains routes related to patients)
       - reports.js (contains routes related to reports)
- index.js
- package.json
- package-lock.json

How to Start

 npm start

When Running in Local System

 run the the code in postman with corresponding routes and data

Sample Postman API

https://www.getpostman.com/collections/2f482e127f4852e0b38d

codingninjas-hospital-api's People

Contributors

jatin510 avatar

Stargazers

 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.