How anurag16067/caresync works
CareSync is a doctor-booking platform with patient, doctor, and admin experiences, plus an AI symptom checker. Patients browse specialists, optionally get an AI recommendation, book appointments, and manage their profile and bookings; doctors and admins manage appointments and platform data. The graph separates the web experiences, API workflows, domain records, and external services. Relationships for unsampled features are included only where the README documents them; source-level evidence is limited to the provided excerpts and index.
Main entry points: userRoute.js Patient API routes · App.jsx Patient web app · server.js REST API server · userController.js Patient account and booking
Components 26
Patient experience
- Patient web app
frontend/src/App.jsx - Patient app context
frontend/src/context/AppContext.jsx - Doctor discovery
frontend/src/pages/Doctors.jsx - Symptom checker
frontend/src/pages/SymptomChecker.jsx - Appointment booking
frontend/src/pages/Appointment.jsx - Profile and bookings
frontend/src/pages/MyAppointments.jsx
Care API
- REST API server
backend/server.js - Patient API routes
backend/routes/userRoute.js - Patient account and booking
backend/controllers/userController.js - AI recommendations
backend/controllers/aiController.js - Admin API routes
backend/routes/adminRoute.js - Admin operations
backend/controllers/adminController.js - Doctor API routes
backend/routes/doctorRoute.js - Doctor operations
backend/controllers/doctorController.js
Doctor and admin panels
- Staff panel
admin/src/App.jsx - Admin panel state
admin/src/context/AdminContext.jsx - Doctor panel state
admin/src/context/DoctorContext.jsx
Platform data and services
- Appointment records
backend/models/appointmentModel.js - Doctor records
backend/models/doctorModel.js - Patient records
backend/models/userModel.js - MongoDB
backend/config/mongodb.js - Cloudinary
backend/config/cloudinary.js - Google Gemini
- Razorpay
Other components
- Patient
- Doctor or admin
Connections 41
- Patient → Patient web app: uses
- Patient web app → Patient app context: provides context
frontend/src/main.jsx - Patient web app → Doctor discovery: routes to
frontend/src/App.jsx - Patient web app → Symptom checker: routes to
frontend/src/App.jsx - Patient web app → Appointment booking: routes to
frontend/src/App.jsx - Patient web app → Profile and bookings: routes to
frontend/src/App.jsx - Patient app context → Patient API routes: requests profiles
frontend/src/context/AppContext.jsx - Doctor discovery → Patient API routes: browses doctors
- Symptom checker → Patient API routes: submits symptoms
- Symptom checker → Appointment booking: carries symptoms
- Appointment booking → Patient API routes: books appointments
- Profile and bookings → Patient API routes: manages bookings
- Patient API routes → Patient account and booking: dispatches
backend/routes/userRoute.js - Patient API routes → AI recommendations: dispatches
backend/routes/userRoute.js - REST API server → Patient API routes: mounts routes
backend/server.js - REST API server → Admin API routes: mounts routes
backend/server.js - REST API server → Doctor API routes: mounts routes
backend/server.js - Patient account and booking → Patient records: reads and writes
backend/controllers/userController.js - Patient account and booking → Doctor records: checks slots
backend/controllers/userController.js - Patient account and booking → Appointment records: creates bookings
backend/controllers/userController.js - Patient account and booking → Razorpay: creates payment orders
- AI recommendations → Patient records: reads patient profile
backend/controllers/aiController.js - AI recommendations → Google Gemini: requests recommendation
- Admin API routes → Admin operations: dispatches
backend/routes/adminRoute.js - Doctor API routes → Doctor operations: dispatches
backend/routes/doctorRoute.js - Admin operations → Doctor records: manages doctors
backend/controllers/adminController.js - Admin operations → Appointment records: manages bookings
backend/controllers/adminController.js - Admin operations → Patient records: counts patients
backend/controllers/adminController.js - Admin operations → Cloudinary: uploads images
backend/controllers/adminController.js - Doctor operations → Doctor records: updates doctor data
backend/controllers/doctorController.js - Doctor operations → Appointment records: manages appointments
backend/controllers/doctorController.js - Doctor or admin → Staff panel: uses
- Staff panel → Admin panel state: uses
admin/src/App.jsx - Staff panel → Doctor panel state: uses
admin/src/App.jsx - Admin panel state → Admin API routes: calls admin APIs
admin/src/context/AdminContext.jsx - Doctor panel state → Doctor API routes: calls doctor APIs
admin/src/context/DoctorContext.jsx - REST API server → MongoDB: connects
backend/server.js - REST API server → Cloudinary: configures
backend/server.js - Appointment records → MongoDB: persists in
- Doctor records → MongoDB: persists in
- Patient records → MongoDB: persists in