Coding Ninjas Skill Test Assignment
Design the server side for a Hospital-API. Tech Stack: Node.js & Mongo DB
-
- /doctors/register → with username and password
- /doctors/login → returns the JWT to be used
- /patients/register
- /patients/:id/create_report
- /patients/:id/all_reports → List all the reports of a patient oldest to latest
- /reports/:status → List all the reports of all the patients filtered by a specific status
Here is the Technology Stack of this Application. which I have used to Built this Application.
- MongoDB
- Express
- NodeJS
Hospital-API
|------ config
| └--- mongoose.js
|------ controller
| └--- doctorController.js
| └--- patientController.js
| └--- reportController.js
|------ middleware
| └--- authMiddleware.js
|------ models
| └--- doctor.js
| └--- patient.js
| └--- report.js
|------ routes
| └--- doctor.js
| └--- patient.js
| └--- report.js
|------ .gitignore
|------ index.js
|------ package.json
|------ package-lock.json
└------ README.md