How sebast1023/barber_shop works
Barber Shop is a role-based barber-shop management system: customers book appointments and shop for products, while staff manage schedules, walk-in service, inventory, sales, and reporting. The principal booking flow selects a service, barber, date, and available time before submitting a reservation to the REST API and PostgreSQL-backed domain models. The README documents additional role capabilities; several frontend modules and backend handlers were not sampled, so those connections are shown only where documented or directly evidenced.
Main entry points: views.py API handlers · agenda.js Appointment booking · models.py Domain models · serializers.py JSON serializers
Components 21
Customer experience
- Account access
frontend/js/auth.js - Appointment booking
frontend/js/agenda.js - Client records
frontend/js/perfil.js - Product shopping
frontend/js/tienda.js
Staff operations
- Barber schedule
frontend/js/barbero.js - Reception desk
frontend/js/recepcion.js - Administration
frontend/js/admin.js - Analytics panel
frontend/js/reportes.js
REST API
- API routing
backend/core/urls.py - API handlers
backend/barberia/views.py - JSON serializers
backend/barberia/serializers.py
Business domains
- Accounts and roles
backend/barberia/views.py - Appointments
backend/barberia/views.py - Services and barbers
backend/barberia/views.py - Products and stock
backend/barberia/views.py - Sales and pickup
backend/barberia/views.py - Staff administration
backend/barberia/views.py - Financial reports
backend/barberia/views.py
Persistence
- Domain models
backend/barberia/models.py - PostgreSQL
Other components
- Customer
Connections 22
- Customer → Appointment booking: selects booking
README.md - Appointment booking → API handlers: submits reservation
frontend/js/agenda.js - Appointment booking → API handlers: loads availability
frontend/js/agenda.js - Account access → API handlers: sends account requests
frontend/js/auth.js - Reception desk → API handlers: submits desk actions
frontend/js/recepcion.js - Administration → API handlers: manages resources
frontend/js/admin.js - Barber schedule → API handlers: requests schedule
- Client records → API handlers: requests profile
- Product shopping → API handlers: requests products
- Analytics panel → API handlers: requests reports
- API routing → API handlers: routes endpoints
backend/core/urls.py - API handlers → JSON serializers: uses serializers
backend/barberia/views.py - API handlers → Domain models: queries domain data
backend/barberia/views.py - API handlers → Accounts and roles: handles account actions
backend/core/urls.py - API handlers → Appointments: handles reservations
backend/core/urls.py - API handlers → Services and barbers: handles catalog
backend/core/urls.py - API handlers → Products and stock: handles stock
backend/core/urls.py - API handlers → Sales and pickup: handles sales
backend/core/urls.py - API handlers → Staff administration: handles employees
backend/core/urls.py - API handlers → Financial reports: handles reporting
backend/core/urls.py - JSON serializers → Domain models: serializes models
backend/barberia/serializers.py - Domain models → PostgreSQL: maps database tables
backend/barberia/models.py