How riteshpandey2024-cyber/sukritihealth works
SukritiHealth is a multi-panel doctor appointment platform: patients discover doctors, book and pay for appointments, while doctors manage their schedules and admins oversee the platform. Three React applications share an Express API, which dispatches role-specific requests to controllers and persists domain records in MongoDB. The graph retains the documented careers and image-hosting capabilities. Some page and integration internals were not sampled, so those links are based on README documentation rather than inspected implementations.
Main entry points: server.js Express API · App.jsx Patient website · userController.js Patient services · adminController.js Admin services
Components 30
Patient portal
- Patient website
frontend/src/App.jsx - Patient state
frontend/src/context/AppContext.jsx - Doctor discovery
frontend/src/pages/Doctors.jsx - Booking and payment
frontend/src/pages/Appointment.jsx - Profile and appointments
frontend/src/pages/MyAppointments.jsx - Careers
frontend/src/pages/Careers.jsx
Staff dashboards
- Admin panel
admin/src/App.jsx - Admin state
admin/src/context/AdminContext.jsx - Doctor and platform oversight
admin/src/pages/AddDoctor.jsx - Doctor dashboard
doctor/src/App.jsx - Doctor state
doctor/src/context/DoctorContext.jsx - Clinical operations
doctor/src/pages/DoctorDashboard.jsx
API and domain
- Express API
backend/server.js - Patient routes
backend/routes/userRoute.js - Doctor routes
backend/routes/doctorRoute.js - Admin routes
backend/routes/adminRoute.js - Career routes
backend/routes/careerRoute.js - Patient services
backend/controllers/userController.js - Doctor services
backend/controllers/doctorController.js - Admin services
backend/controllers/adminController.js - Career services
backend/controllers/careerController.js
Persistence and integrations
- Patient records
backend/models/userModel.js - Doctor records
backend/models/doctorModel.js - Appointment records
backend/models/appointmentModel.js - MongoDB
backend/config/mongodb.js - Razorpay
- Cloudinary
backend/config/cloudinary.js
Other components
- Patient
- Administrator
- Doctor
Connections 42
- Patient → Patient website: uses
README.md - Patient website → Doctor discovery: routes to
frontend/src/App.jsx - Patient website → Booking and payment: routes to
frontend/src/App.jsx - Patient website → Profile and appointments: routes to
frontend/src/App.jsx - Patient website → Careers: routes to
frontend/src/App.jsx - Patient state → Express API: requests
- Doctor discovery → Patient state: uses data
- Booking and payment → Patient state: requests
README.md - Profile and appointments → Patient state: requests
README.md - Administrator → Admin panel: uses
README.md - Admin panel → Doctor and platform oversight: routes to
admin/src/App.jsx - Admin panel → Admin state: provides state
admin/src/App.jsx - Admin state → Express API: requests
admin/src/context/AdminContext.jsx - Doctor and platform oversight → Admin state: uses actions
admin/src/pages/AddDoctor.jsx - Doctor → Doctor dashboard: uses
README.md - Doctor dashboard → Clinical operations: routes to
doctor/src/App.jsx - Doctor dashboard → Doctor state: provides state
doctor/src/App.jsx - Doctor state → Express API: requests
doctor/src/context/DoctorContext.jsx - Clinical operations → Doctor state: uses actions
doctor/src/pages/DoctorDashboard.jsx - Express API → Patient routes: mounts
backend/server.js - Express API → Doctor routes: mounts
backend/server.js - Express API → Admin routes: mounts
backend/server.js - Express API → Career routes: mounts
backend/server.js - Patient routes → Patient services: dispatches
backend/routes/userRoute.js - Doctor routes → Doctor services: dispatches
backend/routes/doctorRoute.js - Admin routes → Admin services: dispatches
backend/routes/adminRoute.js - Career routes → Career services: dispatches
- Patient services → Patient records: reads and writes
backend/controllers/userController.js - Patient services → Doctor records: reads and writes
backend/controllers/userController.js - Patient services → Appointment records: reads and writes
backend/controllers/userController.js - Patient services → Razorpay: creates and verifies orders
backend/controllers/userController.js - Doctor services → Doctor records: reads and writes
backend/controllers/doctorController.js - Doctor services → Appointment records: reads and writes
backend/controllers/doctorController.js - Admin services → Doctor records: reads and writes
backend/controllers/adminController.js - Admin services → Appointment records: reads and writes
backend/controllers/adminController.js - Admin services → Patient records: reads
backend/controllers/adminController.js - Admin services → Cloudinary: uploads images
backend/controllers/adminController.js - Career services → Careers: serves content
- Express API → MongoDB: connects
backend/server.js - Patient records → MongoDB: persists in
- Doctor records → MongoDB: persists in
- Appointment records → MongoDB: persists in