API for hospital.
- API for the Covid hospital for doctors, patients and reports.
- 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
- Doctor (name, mobile, password)
- Patient (name, address, mobile, reports[])
- Report (doctor, patient, status, date)
- 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
npm start
run the the code in postman with corresponding routes and data