How saurabhedict/docease-your-complete-full-stack-digital-hospital-ecosystem works
DocEase is a digital clinic platform with a patient-facing appointment flow and separate admin and doctor portals. Patients browse doctors, manage profiles, book or cancel appointments, and pay; staff manage doctors and appointments, while doctors manage availability and care workflow. The backend controllers coordinate MongoDB-backed records and external image/payment services. Some route, context, and page implementations are not sampled, so links between those areas are shown only where supported by the tree or sampled code.
Main entry points: userController.js User workflows · server.js API server · adminController.js Admin workflows · doctorModel.js Doctor records
Components 22
Patient experience
- Patient web app
frontend/src - Patient app context
frontend/src/context/AppContext.jsx - Patient pages
frontend/src/pages
Staff portals
- Admin and doctor portal
admin/src - Portal contexts
admin/src/context - Portal pages
admin/src/pages
API workflows
- API server
backend/server.js - User routes
backend/routes/userRoute.js - Doctor routes
backend/routes/doctorRoute.js - Admin routes
backend/routes/adminRoute.js - User workflows
backend/controllers/userController.js - Doctor workflows
backend/controllers/doctorController.js - Admin workflows
backend/controllers/adminController.js - Role authentication
backend/middlewares
Data and integrations
- Appointment records
backend/models/appointmentModel.js - Doctor records
backend/models/doctorModel.js - User records
backend/models/userModel.js - MongoDB
backend/config/mongodb.js - Cloudinary images
backend/config/cloudinary.js - Razorpay
Other components
- Patient
- Admin or doctor
Connections 23
- Patient → Patient web app: uses
- Patient web app → Patient pages: routes to
- Patient web app → Patient app context: provides context
- Patient app context → API server: requests
- Admin or doctor → Admin and doctor portal: uses
- Admin and doctor portal → Portal pages: routes to
- Admin and doctor portal → Portal contexts: provides context
- API server → User routes: mounts
- API server → Doctor routes: mounts
- API server → Admin routes: mounts
- User workflows → User records: reads and writes
- User workflows → Doctor records: reads and writes
- User workflows → Appointment records: reads and writes
- User workflows → Cloudinary images: uploads images
- User workflows → Razorpay: creates and verifies orders
- Doctor workflows → Doctor records: reads and writes
- Doctor workflows → Appointment records: reads and writes
- Admin workflows → Doctor records: reads and writes
- Admin workflows → User records: reads
- Admin workflows → Appointment records: reads and writes
- Admin workflows → Cloudinary images: uploads images
- Role authentication → Doctor records: loads doctor
- API server → MongoDB: connects