How harold474/saludya_backend works
SaludYa is a clinic-management backend exposed through an Express API. Its visible workflows include role-based login and registration, patient and appointment administration, appointment booking and history, and password recovery. Route handlers in the monolithic server query the MySQL pool; recovery also sends email through Brevo. The excerpts show only selected routes, so this map preserves documented-by-code capabilities without inferring unshown subsystems or finer-grained call paths.
Main entry points: server.js Express API · db.js MySQL pool
Components 11
HTTP API
- Express API
server.js
Accounts
- Login
server.js - Account registration
server.js - Password recovery
server.js - Password reset
server.js
Clinic operations
- Patient administration
server.js - Appointment management
server.js - Appointment history
server.js
Persistence
- MySQL pool
db.js
Integrations
- Brevo email service
Other components
- API clients
Connections 16
- API clients → Express API: send requests
server.js - Express API → Login: routes requests
server.js - Express API → Account registration: routes requests
server.js - Express API → Password recovery: routes requests
server.js - Express API → Password reset: routes requests
server.js - Express API → Patient administration: routes requests
server.js - Express API → Appointment management: routes requests
server.js - Express API → Appointment history: routes requests
server.js - Login → MySQL pool: queries users
server.js - Account registration → MySQL pool: checks and writes
server.js - Password recovery → MySQL pool: stores code
server.js - Password recovery → Brevo email service: sends email
server.js - Password reset → MySQL pool: checks and updates
server.js - Patient administration → MySQL pool: queries patients
server.js - Appointment management → MySQL pool: checks and updates
server.js - Appointment history → MySQL pool: queries appointments
server.js