How lucasosrodrigues/agenda-plus works
Agenda+ supports clinic appointment requests: patients browse availability and submit requests; secretaries manage slots and confirm or refuse requests. The current backend uses in-memory mock data. The README also describes medication reservations, authentication, and doctor and administrator portals, but their implementation is not represented in the sampled source or tree, so those capabilities are shown as documented, unverified subsystems. Edges reflect the sampled calls and documented API; unsampled behavior is not inferred.
Main entry points: app.ts Express API · solicitacoes.ts Request API client · banco.ts Mock data store · rotas.ts API paths
Components 26
Patient portal
- Browse availability
frontend/app/horarios/page.tsx - My requests
frontend/app/solicitacoes/page.tsx - Patient signup
frontend/app/cadastro/page.tsx
Staff portals
- Manage slots
frontend/app/gerenciamento/horarios/page.tsx - Review requests
frontend/app/gerenciamento/solicitacoes/page.tsx - Manage team
frontend/app/administracao/equipe/page.tsx - Doctor and admin portals
- Medication reservations
API and domain services
- Schedule API client
frontend/services/horarios.ts - Request API client
frontend/services/solicitacoes.ts - Patient API client
frontend/services/pacientes.ts - Team API client
frontend/services/equipe.ts - Express API
backend/src/app.ts - Schedule routes
backend/src/routes/horarios.ts - Request routes
backend/src/routes/solicitacoes.ts - Patient routes
backend/src/routes/pacientes.ts - Team routes
backend/src/routes/equipe.ts - Schedule rules
backend/src/services/horarios.ts - Request rules
backend/src/services/solicitacoes.ts - Patient registration
backend/src/services/pacientes.ts - Team registration
backend/src/services/equipe.ts
Runtime state and contracts
- Mock data store
backend/src/mocks/banco.ts - Agenda types
shared/agenda.ts - API paths
frontend/services/rotas.ts
Other components
- Patient
- Secretary
Connections 30
- Patient → Browse availability: browses
readme.md - Browse availability → Schedule API client: loads availability
frontend/app/horarios/page.tsx - Browse availability → Request API client: submits request
frontend/app/horarios/page.tsx - Patient → My requests: tracks requests
readme.md - My requests → Request API client: loads requests
frontend/services/solicitacoes.ts - Patient → Patient signup: registers
frontend/app/cadastro/page.tsx - Patient signup → Patient API client: sends registration
frontend/app/cadastro/page.tsx - Secretary → Manage slots: manages slots
readme.md - Manage slots → Schedule API client: manages availability
frontend/app/gerenciamento/horarios/page.tsx - Secretary → Review requests: reviews requests
readme.md - Review requests → Request API client: decides requests
frontend/app/gerenciamento/solicitacoes/page.tsx - Manage team → Team API client: registers staff
frontend/app/administracao/equipe/page.tsx - Schedule API client → API paths: uses paths
frontend/services/horarios.ts - Request API client → API paths: uses paths
frontend/services/solicitacoes.ts - Patient API client → API paths: uses paths
frontend/services/pacientes.ts - Team API client → API paths: uses paths
frontend/services/equipe.ts - Express API → Schedule routes: mounts routes
backend/src/app.ts - Express API → Request routes: mounts routes
backend/src/app.ts - Express API → Patient routes: mounts routes
backend/src/app.ts - Express API → Team routes: mounts routes
backend/src/app.ts - Schedule routes → Schedule rules: calls
backend/src/routes/horarios.ts - Request routes → Request rules: calls
backend/src/routes/solicitacoes.ts - Patient routes → Patient registration: calls
backend/src/routes/pacientes.ts - Team routes → Team registration: calls
backend/src/routes/equipe.ts - Schedule rules → Mock data store: reads and updates
backend/src/services/horarios.ts - Request rules → Mock data store: reads and updates
backend/src/services/solicitacoes.ts - Patient registration → Mock data store: reads and updates
backend/src/services/pacientes.ts - Team registration → Mock data store: reads and updates
backend/src/services/equipe.ts - Doctor and admin portals → Secretary: documented portals
readme.md - Medication reservations → Secretary: documented capability
readme.md