How yash-raj07/curepro works
CurePro is a patient healthcare web app backed by an Express/MongoDB service. The visible workflow is account registration or login, browsing hospitals and booking appointments, then reviewing appointments in the dashboard or a confirmation view. The voice-assistant UI is another major product branch. README claims disease prediction and real-time communication, but the supplied tree and excerpts do not show their runtime implementations, so they are not mapped as working subsystems. Some UI-to-API behavior is visible; other links are omitted where evidence is unavailable.
Main entry points: Routes.jsx Page routing · authRoutes.js Auth routes · appointmentRoutes.js Appointment routes · User.js User records
Components 21
Patient web app
- React app entry
my-react-app/src/App.jsx - Page routing
my-react-app/src/Routes.jsx - Registration
my-react-app/src/pages/register/index.jsx - Login UI
my-react-app/src/pages/login/index.jsx - User dashboard
my-react-app/src/pages/user-dashboard/index.jsx - Voice assistant
my-react-app/src/pages/voice-assistant/VoiceAssistant.jsx - Hospital browser
my-react-app/src/components/HospitalList.jsx - Booking confirmation
my-react-app/src/pages/appointment-confirmation/index.jsx
Identity and access
- Auth routes
backend/routes/authRoutes.js - Auth controller
backend/controllers/authController.js - JWT guard
backend/middleware/authMiddleware.js - Token generator
backend/utils/generateToken.js - Google OAuth config
backend/config/passport.js
Hospital appointments
- Appointment routes
backend/routes/appointmentRoutes.js - Appointment controller
backend/controllers/appointmentController.js
Data persistence
- User records
backend/models/User.js - Appointment records
backend/models/Appointment.js - Hospital records
backend/models/Hospital.js - API server
backend/server.js
Other components
- Patient
- MongoDB
Connections 27
- Patient → React app entry: uses
- React app entry → Page routing: renders
my-react-app/src/App.jsx - Page routing → Registration: routes to
my-react-app/src/Routes.jsx - Page routing → Login UI: routes to
my-react-app/src/Routes.jsx - Page routing → User dashboard: protects route
my-react-app/src/Routes.jsx - Page routing → Voice assistant: protects route
my-react-app/src/Routes.jsx - Patient → Hospital browser: browses
- Patient → Booking confirmation: views
- Registration → Auth routes: posts registration
my-react-app/src/pages/register/index.jsx - API server → Auth routes: mounts
backend/server.js - API server → Appointment routes: mounts
backend/server.js - Auth routes → Auth controller: dispatches
backend/routes/authRoutes.js - Auth routes → Google OAuth config: authenticates with
backend/routes/authRoutes.js - Auth routes → Token generator: creates token
backend/routes/authRoutes.js - Auth controller → User records: reads and writes
backend/controllers/authController.js - Auth controller → Token generator: generates token
backend/controllers/authController.js - Google OAuth config → User records: uses user model
backend/config/passport.js - User dashboard → Appointment routes: requests appointments
my-react-app/src/pages/user-dashboard/index.jsx - Appointment routes → JWT guard: guards routes
backend/routes/appointmentRoutes.js - Appointment routes → Appointment controller: dispatches
backend/routes/appointmentRoutes.js - Appointment controller → Appointment records: reads and writes
backend/controllers/appointmentController.js - Appointment controller → Hospital records: reads and updates
backend/controllers/appointmentController.js - JWT guard → User records: loads user
backend/middleware/authMiddleware.js - API server → MongoDB: connects
backend/server.js - User records → MongoDB: persists via Mongoose
- Appointment records → MongoDB: persists via Mongoose
- Hospital records → MongoDB: persists via Mongoose