How udaykumar2507/mediconnect works
This is a doctor-appointment web application with a React client and an Express/Mongoose server. Users register or log in, browse doctors, check availability, and request appointments; doctors manage profiles and appointment status, while administrators review doctor applications and manage accounts. Notifications support application and appointment updates. The graph separates client workflows, server routing and domain logic, and persisted records. The available excerpts show the doctor-application request end to end; several other client-to-server interactions are visible only as product features in the file tree, so those links are omitted rather than inferred.
Main entry points: App.js Route app · userCtrl.js User workflows · doctorCtrl.js Doctor workflows · ApplyDoctor.js Doctor application
Components 24
Client experience
- Route app
client/src/App.js - Role navigation
client/src/components/Layout.js - Doctor application
client/src/pages/ApplyDoctor.js - Appointment booking
client/src/pages/BookingPage.js - Patient appointments
client/src/pages/Appointments.js - Notifications
client/src/pages/NotificationPage.js - Doctor profile
client/src/pages/doctor/Profile.js - Doctor appointments
client/src/pages/doctor/DoctorAppointments.js - Doctor administration
client/src/pages/admin/Doctors.js - User administration
client/src/pages/admin/Users.js
Server API
- User routes
routes/userRoutes.js - Doctor routes
routes/doctorRoutes.js - Admin routes
routes/adminRoutes.js
Domain logic
- Token authentication
middlewares/authMiddleware.js - User workflows
controllers/userCtrl.js - Doctor workflows
controllers/doctorCtrl.js - Admin workflows
controllers/adminCtrl.js
Persistent records
- User records
models/userModels.js - Doctor records
models/doctorModel.js - Appointment records
models/appointmentModel.js - MongoDB connection
config/db.js
Other components
- Patient
- Doctor
- Administrator
Connections 27
- Patient → Route app: uses
client/src/App.js - Doctor → Route app: uses
client/src/App.js - Administrator → Route app: uses
client/src/App.js - Route app → Doctor application: routes to
client/src/App.js - Route app → Appointment booking: routes to
client/src/App.js - Route app → Patient appointments: routes to
client/src/App.js - Route app → Notifications: routes to
client/src/App.js - Route app → Doctor profile: routes to
client/src/App.js - Route app → Doctor appointments: routes to
client/src/App.js - Route app → Doctor administration: routes to
client/src/App.js - Route app → User administration: routes to
client/src/App.js - Doctor application → Role navigation: renders within
client/src/pages/ApplyDoctor.js - Doctor application → User routes: posts application
client/src/pages/ApplyDoctor.js - User routes → Token authentication: guards routes
routes/userRoutes.js - User routes → User workflows: dispatches to
routes/userRoutes.js - Doctor routes → Token authentication: guards routes
routes/doctorRoutes.js - Doctor routes → Doctor workflows: dispatches to
routes/doctorRoutes.js - Admin routes → Token authentication: guards routes
routes/adminRoutes.js - Admin routes → Admin workflows: dispatches to
routes/adminRoutes.js - User workflows → User records: reads and writes
controllers/userCtrl.js - User workflows → Doctor records: reads and writes
controllers/userCtrl.js - User workflows → Appointment records: reads and writes
controllers/userCtrl.js - Doctor workflows → User records: uses records
controllers/doctorCtrl.js - Doctor workflows → Doctor records: uses records
controllers/doctorCtrl.js - Doctor workflows → Appointment records: uses records
controllers/doctorCtrl.js - Admin workflows → User records: uses records
controllers/adminCtrl.js - Admin workflows → Doctor records: uses records
controllers/adminCtrl.js