How i3rb-v/nadeem-barbershop works
Nadeem BarberShop is a bilingual booking and shop-management web app for four branches. Customers browse services, barbers and branches, select a branch, service, barber, date and available time, then submit a reservation and view its receipt. The server provides configuration, availability, appointment and chat APIs; JSON files provide persistent business and user data. Separate login, admin and barber screens support staff workflows. The excerpts show slot calculation and appointment validation, but omit some route handlers and client logic, so uncertain connections are not drawn.
Main entry points: app.js Web application · server.js HTTP API · store.json Business data · index.html Home page
Components 20
Customer experience
- Home page
nadeem-barbershop-v2.1/nadeem-v21/public/index.html - Shop information
nadeem-barbershop-v2.1/nadeem-v21/public - Booking page
nadeem-barbershop-v2.1/nadeem-v21/public/booking.html - Receipt page
nadeem-barbershop-v2.1/nadeem-v21/public/receipt.html - Web application
nadeem-barbershop-v2.1/nadeem-v21/public/app.js
Booking services
- HTTP API
nadeem-barbershop-v2.1/nadeem-v21/server.js - Slot availability
nadeem-barbershop-v2.1/nadeem-v21/server.js - Appointments
nadeem-barbershop-v2.1/nadeem-v21/server.js - Chat assistant
nadeem-barbershop-v2.1/nadeem-v21/server.js
Staff operations
- Staff login
nadeem-barbershop-v2.1/nadeem-v21/public/login.html - Admin console
nadeem-barbershop-v2.1/nadeem-v21/public/admin.html - Barber console
nadeem-barbershop-v2.1/nadeem-v21/public/barber.html
Data and integrations
- Business data
nadeem-barbershop-v2.1/nadeem-v21/data/store.json - User data
nadeem-barbershop-v2.1/nadeem-v21/data/users.json - Email delivery
nadeem-barbershop-v2.1/nadeem-v21/server.js - WhatsApp notices
nadeem-barbershop-v2.1/nadeem-v21/server.js
Other components
- Customer
- Gemini API
- SMTP service
- Twilio service
Connections 24
- Customer → Home page: opens
- Customer → Booking page: books through
- Home page → Web application: renders with
- Shop information → Web application: renders with
- Booking page → Web application: renders with
- Receipt page → Web application: renders with
- Staff login → Web application: renders with
- Admin console → Web application: renders with
- Barber console → Web application: renders with
- Web application → HTTP API: requests APIs
- HTTP API → Business data: reads and writes
- HTTP API → User data: reads and writes
- HTTP API → Slot availability: calculates slots
- HTTP API → Appointments: handles bookings
- Slot availability → Business data: reads schedules
- Slot availability → Appointments: checks conflicts
- Appointments → Business data: persists appointments
- Web application → Chat assistant: sends questions
- Chat assistant → Business data: reads business data
- Chat assistant → Gemini API: queries when configured
- HTTP API → Email delivery: sends receipts
- Email delivery → SMTP service: delivers through
- HTTP API → WhatsApp notices: sends notices
- WhatsApp notices → Twilio service: delivers through