How dayspot-organization/dayspot works
Dayspot is a multi-tenant scheduling platform for small businesses. A customer books without an account through a company’s public page: the Angular screen requests public company, service, provider, and availability data, then submits a booking to the API. Staff use the authenticated panel to manage appointments and clients; organization access is isolated with PostgreSQL row-level security. The map also includes signup/login and the shared API/data layer. Several frontend screens and API handlers were not excerpted, so their links are limited to documented routes and source-index references; WhatsApp notifications are planned, not implemented.
Main entry points: AppDb.cs Data access · app.routes.ts Frontend routes · index.ts API client · Rotas.cs API routing
Components 23
Web experience
- Public booking
web/src/app/agendar/agendar.ts - Appointment agenda
web/src/app/agendamentos/agendamentos.ts - New appointment
web/src/app/novo-agendamento/novo-agendamento.ts - Signup screen
web/src/app/cadastro/cadastro.ts - Login screen
web/src/app/entrar/entrar.ts - Panel layout
web/src/app/layout.ts - Frontend routes
web/src/app/app.routes.ts - API client
web/src/app/api/index.ts - HTTP and errors
web/src/app/api/http.ts
API workflows
- API routing
src/Api/Rotas.cs - Public booking API
src/Api/Publico.cs - Appointments API
src/Api/Agendamentos.cs - Clients API
src/Api/Clientes.cs
Identity and tenancy
- Signup workflow
src/Api/Cadastro.cs - Login and sessions
src/Api/Login.cs - Session authentication
src/Api/Autenticacao.cs - Tenant context
src/Api/Dados/AppDb.cs
Persistence
- Data access
src/Api/Dados/AppDb.cs - Domain queries
src/Api/Dados/Consultas.cs - PostgreSQL
Other components
- Customer
- Business staff
- WhatsApp provider
Connections 31
- Customer → Public booking: opens page
README.md - Public booking → API client: requests availability
web/src/app/agendar/agendar.ts - Public booking → API client: submits booking
web/src/app/agendar/agendar.ts - Business staff → Login screen: signs in
README.md - Business staff → Appointment agenda: manages schedule
README.md - Appointment agenda → API client: loads appointments
web/src/app/agendamentos/agendamentos.ts - New appointment → API client: creates appointment
web/src/app/novo-agendamento/novo-agendamento.ts - Signup screen → API client: submits signup
web/src/app/cadastro/cadastro.ts - Login screen → API client: sends credentials
web/src/app/entrar/entrar.ts - API client → HTTP and errors: uses HTTP errors
web/src/app/api/index.ts - Frontend routes → Public booking: routes public page
web/src/app/app.routes.ts - Frontend routes → Appointment agenda: routes panel
web/src/app/app.routes.ts - Frontend routes → New appointment: routes creation
web/src/app/app.routes.ts - Frontend routes → Signup screen: routes signup
web/src/app/app.routes.ts - Frontend routes → Login screen: routes login
web/src/app/app.routes.ts - Frontend routes → Panel layout: wraps panel
web/src/app/app.routes.ts - API routing → Public booking API: dispatches public
src/Api/Rotas.cs - API routing → Appointments API: dispatches appointments
src/Api/Rotas.cs - API routing → Clients API: dispatches clients
src/Api/Rotas.cs - API routing → Signup workflow: dispatches signup
src/Api/Rotas.cs - API routing → Login and sessions: dispatches login
src/Api/Rotas.cs - Public booking API → Data access: reads and books
src/Api/Publico.cs - Appointments API → Data access: reads and creates
src/Api/Agendamentos.cs - Clients API → Data access: lists and creates
src/Api/Clientes.cs - Signup workflow → Login and sessions: opens session
src/Api/Cadastro.cs - Login and sessions → Data access: checks user session
src/Api/Login.cs - Session authentication → Data access: checks session
src/Api/Autenticacao.cs - Tenant context → PostgreSQL: sets tenant scope
src/Api/Dados/AppDb.cs - Data access → PostgreSQL: queries and writes
src/Api/Dados/AppDb.cs - Data access → Domain queries: delegates queries
src/Api/Dados/AppDb.cs - WhatsApp provider → Public booking API