How kent757/carepoint_kenjorn.dev works
CarePoint is a clinic operations web application with patient, staff, and administrator workflows. Users interact with browser dashboards backed by an Express API: patients register or sign in, request appointments and track queue status; staff manage daily clinic activity; administrators manage appointments, users, and notifications. The graph includes the sampled API, data models, queue-priority logic, and browser clients. README content is only a title, so broader capabilities are inferred cautiously from routes and client files; unsampled route details are not expanded.
Main entry points: server.js HTTP server · staffRoutes.js Staff operations · adminRoutes.js Administration · Notification.js Notifications
Components 22
Browser clients
- Patient dashboard
public/js/patient.js - Staff dashboard
public/js/staff.js - Admin dashboard
public/js/admin.js - Sign-in and registration
public/js/auth.js
API and access
- HTTP server
src/server.js - Authentication routes
src/routes/authRoutes.js - Session authorization
src/middleware/authMiddleware.js - Login rate limiting
src/middleware/rateLimitMiddleware.js
Clinic operations
- Patient appointments
src/routes/appointmentRoutes.js - Appointment administration
src/routes/adminAppointmentRoutes.js - Queue management
src/routes/queueRoutes.js - Priority ordering
src/algorithms/PriorityQueue.js - Staff operations
src/routes/staffRoutes.js - Administration
src/routes/adminRoutes.js
Persisted data
- User accounts
src/models/User.js - Appointment records
src/models/Appointment.js - Queue entries
src/models/QueueEntry.js - Notifications
src/models/Notification.js
Other components
- Patient
- Clinic staff
- Administrator
- MongoDB
Connections 34
- Patient → Patient dashboard: uses
- Clinic staff → Staff dashboard: uses
- Administrator → Admin dashboard: uses
- Patient → Sign-in and registration: signs in
- Sign-in and registration → HTTP server: HTTP requests
- Patient dashboard → HTTP server: HTTP requests
- Staff dashboard → HTTP server: HTTP requests
- Admin dashboard → HTTP server: HTTP requests
- HTTP server → Authentication routes: routes requests
src/server.js - HTTP server → Login rate limiting: limits login
src/server.js - HTTP server → Patient appointments: routes requests
src/server.js - HTTP server → Appointment administration: routes requests
src/server.js - HTTP server → Queue management: routes requests
src/server.js - HTTP server → Staff operations: routes requests
src/server.js - HTTP server → Administration: routes requests
src/server.js - Authentication routes → User accounts: reads and writes
src/routes/authRoutes.js - Authentication routes → Notifications: creates
src/routes/authRoutes.js - Patient appointments → Session authorization: requires login
src/routes/appointmentRoutes.js - Patient appointments → Appointment records: reads and writes
src/routes/appointmentRoutes.js - Patient appointments → Notifications: creates
src/routes/appointmentRoutes.js - Queue management → Queue entries: reads and writes
src/routes/queueRoutes.js - Queue management → Priority ordering: orders waiting
src/routes/queueRoutes.js - Queue management → Notifications: creates
src/routes/queueRoutes.js - Staff operations → Session authorization: requires staff access
src/routes/staffRoutes.js - Staff operations → User accounts: searches patients
src/routes/staffRoutes.js - Staff operations → Appointment records: reads statistics
src/routes/staffRoutes.js - Staff operations → Queue entries: reads queue
src/routes/staffRoutes.js - Administration → User accounts: manages accounts
src/routes/adminRoutes.js - Administration → Appointment records: manages appointments
src/routes/adminRoutes.js - Administration → Queue entries: reads queue
src/routes/adminRoutes.js - Administration → Notifications: manages notifications
src/routes/adminRoutes.js - Appointment administration → Appointment records: manages appointments
src/routes/adminAppointmentRoutes.js - Appointment administration → Notifications: creates
src/routes/adminAppointmentRoutes.js - HTTP server → MongoDB: connects
src/server.js