How abhiram235/docspot-medical-appointment-booking-system works
Docspot is a three-role healthcare appointment platform: patients find approved doctors, inspect availability and book; doctors manage schedules and appointments; admins review doctors and oversee platform activity. The React app routes role-specific dashboards to a Spring Boot REST backend, with JWT role-based access documented in the README. AppointmentService handles booking and scheduled appointment work; the README also documents next-day reminders and retrying appointment email. Several backend integrations are represented only by the tree or README, so those links are marked unverified rather than asserted as inspected calls.
Main entry points: api REST clients · AppointmentService.java Appointment lifecycle · App.jsx Application shell · AuthController.java Auth endpoints
Components 20
React client
- Application shell
docspot-frontend/docspot-frontend/src/App.jsx - Role dashboards
docspot-frontend/docspot-frontend/src/routes/AppRoutes.jsx - Role workflows
docspot-frontend/docspot-frontend/src/pages - REST clients
docspot-frontend/docspot-frontend/src/api
Identity and access
- Auth context
docspot-frontend/docspot-frontend/src/context/AuthContext.jsx - Auth endpoints
docspot-backend/docspot/src/main/java/com/docspot/controller/AuthController.java - Auth service
docspot-backend/docspot/src/main/java/com/docspot/service/AuthService.java - JWT security
docspot-backend/docspot/src/main/java/com/docspot/config/SecurityConfig.java
Care workflows
- Patient endpoints
docspot-backend/docspot/src/main/java/com/docspot/controller/PatientController.java - Patient workflows
docspot-backend/docspot/src/main/java/com/docspot/service/PatientService.java - Doctor endpoints
docspot-backend/docspot/src/main/java/com/docspot/controller/DoctorController.java - Doctor workflows
docspot-backend/docspot/src/main/java/com/docspot/service/DoctorService.java - Admin endpoints
docspot-backend/docspot/src/main/java/com/docspot/controller/AdminController.java - Admin workflows
docspot-backend/docspot/src/main/java/com/docspot/service/AdminService.java - Appointment lifecycle
docspot-backend/docspot/src/main/java/com/docspot/service/AppointmentService.java
Persistence and messaging
- Relational data
docspot-backend/docspot/src/main/java/com/docspot/entity - Notifications
docspot-backend/docspot/src/main/java/com/docspot/service/NotificationService.java - Email delivery
docspot-backend/docspot/src/main/java/com/docspot/service/EmailService.java - Document storage
docspot-backend/docspot/src/main/java/com/docspot/service/FileStorageService.java
Other components
- Patient / Doctor / Admin
Connections 21
- Patient / Doctor / Admin → Application shell: use dashboards
docspot-frontend/docspot-frontend/src/App.jsx - Application shell → Role dashboards: renders routes
docspot-frontend/docspot-frontend/src/App.jsx - Role dashboards → Role workflows: routes roles
docspot-frontend/docspot-frontend/src/routes/AppRoutes.jsx - Application shell → Auth context: provides auth
docspot-frontend/docspot-frontend/src/App.jsx - Role workflows → REST clients: request data
- REST clients → Auth endpoints: call REST
- REST clients → Patient endpoints: call REST
- REST clients → Doctor endpoints: call REST
- REST clients → Admin endpoints: call REST
- Auth endpoints → Auth service: delegates to
docspot-backend/docspot/src/main/java/com/docspot/controller/AuthController.java - Auth service → JWT security: issues JWT
docspot-backend/docspot/src/main/java/com/docspot/service/AuthService.java - JWT security → Auth endpoints: guards endpoints
- Patient endpoints → Patient workflows: delegates to
docspot-backend/docspot/src/main/java/com/docspot/controller/PatientController.java - Patient workflows → Appointment lifecycle: handles booking
- Doctor endpoints → Doctor workflows: delegates to
docspot-backend/docspot/src/main/java/com/docspot/controller/DoctorController.java - Admin endpoints → Admin workflows: delegates to
docspot-backend/docspot/src/main/java/com/docspot/controller/AdminController.java - Appointment lifecycle → Relational data: reads writes
docspot-backend/docspot/src/main/java/com/docspot/service/AppointmentService.java - Appointment lifecycle → Notifications: publishes events
- Appointment lifecycle → Email delivery: sends reminders
- Doctor workflows → Document storage: stores documents
docspot-backend/docspot/src/main/java/com/docspot/service/DoctorService.java - Email delivery → Patient / Doctor / Admin: emails patients