How lokasorus/prescripto works
Prescripto is a doctor-appointment booking system with patient, doctor, and admin portals backed by an Express API. The patient journey is doctor discovery, appointment selection and booking, payment, then appointment and profile management; doctors and admins manage appointments and platform records. The graph separates portal routing/state, API controllers, and domain data. Some frontend service files are present in the tree but their product role and connections are unclear from the excerpts, so they are omitted rather than assumed to be runtime dependencies.
Main entry points: userController.js Patient workflows · adminController.js Admin workflows · App.jsx Patient app routes · doctorController.js Doctor workflows
Components 24
Patient portal
- Patient app routes
frontend/src/App.jsx - Patient state and API
frontend/src/context/AppContext.jsx - Doctor discovery
frontend/src/pages/Doctors.jsx - Appointment booking
frontend/src/pages/Appointment.jsx - Patient profile
frontend/src/pages/MyProfile.jsx - My appointments
frontend/src/pages/MyAppointments.jsx
Doctor and admin portals
- Staff app routes
admin/src/App.jsx - Admin state and API
admin/src/context/AdminContext.jsx - Doctor state and API
admin/src/context/DoctorContext.jsx - Doctor management
admin/src/pages/doctor - Admin management
admin/src/pages/admin
Backend API
- API server
backend/server.js - Patient routes
backend/routes/userRoute.js - Doctor routes
backend/routes/doctorRoute.js - Admin routes
backend/routes/adminRoute.js - Patient workflows
backend/controllers/userController.js - Doctor workflows
backend/controllers/doctorController.js - Admin workflows
backend/controllers/adminController.js
Domain data
- User records
backend/models/userModel.js - Doctor records and slots
backend/models/doctorModel.js - Appointment records
backend/models/appointmentModel.js
Other components
- Patient
- Razorpay
- Cloudinary
Connections 30
- Patient → Patient app routes: uses
- Patient app routes → Doctor discovery: routes to
frontend/src/App.jsx - Patient app routes → Appointment booking: routes to
frontend/src/App.jsx - Patient app routes → Patient profile: routes to
frontend/src/App.jsx - Patient app routes → My appointments: routes to
frontend/src/App.jsx - Patient state and API → Doctor discovery: provides data
frontend/src/context/AppContext.jsx - Patient state and API → Patient workflows: requests profile
- Appointment booking → Patient workflows: books appointment
- My appointments → Patient workflows: manages bookings
- Staff app routes → Admin management: routes to
admin/src/App.jsx - Staff app routes → Doctor management: routes to
admin/src/App.jsx - Admin state and API → Admin workflows: requests admin data
admin/src/context/AdminContext.jsx - Doctor state and API → Doctor workflows: requests doctor data
admin/src/context/DoctorContext.jsx - API server → Patient routes: mounts
backend/server.js - API server → Doctor routes: mounts
backend/server.js - API server → Admin routes: mounts
backend/server.js - Patient routes → Patient workflows: dispatches
backend/routes/userRoute.js - Doctor routes → Doctor workflows: dispatches
backend/routes/doctorRoute.js - Admin routes → Admin workflows: dispatches
backend/routes/adminRoute.js - Patient workflows → User records: reads and writes
backend/controllers/userController.js - Patient workflows → Doctor records and slots: reads and updates slots
backend/controllers/userController.js - Patient workflows → Appointment records: creates and updates
backend/controllers/userController.js - Patient workflows → Razorpay: creates payment orders
backend/controllers/userController.js - Patient workflows → Cloudinary: uploads profile images
- Doctor workflows → Doctor records and slots: reads and updates
backend/controllers/doctorController.js - Doctor workflows → Appointment records: reads and updates
backend/controllers/doctorController.js - Admin workflows → Doctor records and slots: reads and writes
backend/controllers/adminController.js - Admin workflows → Appointment records: reads and updates
backend/controllers/adminController.js - Admin workflows → User records: reads
backend/controllers/adminController.js - Admin workflows → Cloudinary: uploads doctor images