How maiconroch06/agenda-system works
Agenda System is a Flask application for managing a barbershop, with customer, manager, and barber areas. The visible customer workflow routes registration and login through the customer controller, which validates credentials or creates customer records; authenticated customers can reach appointment pages. The repository also contains appointment, service, barber, and schedule models, plus manager and barber panels. The source excerpts show app setup, customer authentication, and database seeding; connections among unsampled domain models and browser scripts are therefore not inferred.
Main entry points: main.py Flask app · seed.py Initial data · cliente_route.py Customer routes · autenticador_cliente_controller.py Customer auth
Components 34
Application routing
- Flask app
main.py - Public routes
routers/public_route.py - Customer routes
routers/cliente_route.py - Manager routes
routers/gestor_route.py - Barber routes
routers/barbeiro_route.py
Accounts and access
- Customer auth
controllers/autenticador_cliente_controller.py - Manager auth
controllers/autenticador_gestor_controller.py - User records
models/usuarios.py - Customer records
models/Cliente.py - Manager records
models/gestor.py
Barbershop domain
- Barbershop records
models/Barbearia.py - Appointments
models/Agendamento.py - Services
models/Servicos.py - Barber records
models/barbeiros.py - Barber services
models/barbeiro_has_servicos.py - Shop hours
models/horarios_barbearia.py - Barber hours
models/horarios_barbeiro.py - Weekdays
models/dias_da_semana.py - Addresses
models/Endereco.py - States
models/estados.py
Database and setup
- Database setup
database/database_create.py - Initial data
database/seed.py - Address lookup
repository/repository_address.py
Browser panels
- Appointment UI
static/js/agendamentos.js - Barber panel
static/js/barbeiro-painel-interativo.js - Barber registration
static/js/barbeiro-registro.js - Manager panel
static/js/gestor-painel-dinamico.js - Service registration
static/js/registro-servico.js - Business registration
static/js/others/cadastroEmpresa.js - Business linking
static/js/others/vinculacaoEmpresa.js - Address registration
static/js/others/address-register.js
Other components
- Customer
- Manager
- Barber
Connections 21
- Flask app → Database setup: configures database
main.py - Flask app → Initial data: runs initialization
main.py - Flask app → Public routes: registers routes
main.py - Flask app → Customer routes: registers routes
main.py - Flask app → Manager routes: registers routes
main.py - Flask app → Barber routes: registers routes
main.py - Customer → Customer routes: uses
- Manager → Manager routes: uses
- Barber → Barber routes: uses
- Customer routes → Customer auth: delegates login
routers/cliente_route.py - Customer routes → User records: creates user
routers/cliente_route.py - Customer auth → Customer records: looks up customer
controllers/autenticador_cliente_controller.py - Customer auth → User records: saves user
controllers/autenticador_cliente_controller.py - Manager routes → Manager auth: delegates login
routers/gestor_route.py - Manager auth → Manager records: looks up manager
controllers/autenticador_gestor_controller.py - Manager auth → Barbershop records: gets shop CNPJ
controllers/autenticador_gestor_controller.py - Initial data → States: inserts defaults
database/seed.py - Initial data → Addresses: creates default address
database/seed.py - Initial data → Barbershop records: creates default shop
database/seed.py - Initial data → User records: creates default user
database/seed.py - Initial data → Manager records: inserts manager
database/seed.py