How tgzinnwp/nxbarber-2.0 works
NxBarber is a multi-tenant barbershop management and public booking application. Customers discover a shop and book an available time; shop owners register, sign in, and use the panel to manage appointments, staff, services, clients, finances, and gallery. The server routes browser requests to domain handlers backed by PostgreSQL and photo storage, with optional email and Stripe integrations. The README documents these capabilities; several subsystem links are therefore documented rather than verified from sampled handler code.
Main entry points: index.mjs HTTP server · app.js Web app · api.mjs API handlers · ui.js Shared UI
Components 26
Web experience
- Web app
public/app.js - Admin console
public/admin.js - Booking experience
public/booking.js - Management panel
public/dashboard.js - Panel calendar
public/panel-calendar.js - Marketing pages
public/marketing.js - Shared UI
public/ui.js - Scroll effects
public/scroll-reveal.js
Business services
- API handlers
server/api.mjs - Accounts and sessions
server/auth.mjs - Platform administration
server/admin.mjs - Subscriptions
server/billing.mjs - Shop gallery
server/gallery.mjs - Shop profiles
server/shop-profile.mjs - Email verification
server/email-verification.mjs
Runtime and persistence
- HTTP server
server/index.mjs - Page routing
server/site.mjs - Request limits
server/rate-limit.mjs - API responses
server/responses.mjs - PostgreSQL
server/database.mjs - Photo files
server/index.mjs
External integrations
- Verification mail
server/verification-mail.mjs - Stripe
- SMTP service
Other components
- Customer
- Shop owner
Connections 44
- Customer → Page routing: opens pages
README.md - Shop owner → Web app: uses panel
README.md - Web app → Page routing: loads pages
README.md - Web app → API handlers: sends requests
public/app.js - Web app → Marketing pages: renders
public/app.js - Web app → Booking experience: uses booking
public/app.js - Web app → Management panel: renders panel
public/app.js - Web app → Shared UI: uses helpers
public/app.js - Web app → Scroll effects: uses effects
public/app.js - Admin console → Shared UI: uses helpers
public/admin.js - Management panel → Booking experience: uses fields
public/dashboard.js - Management panel → Panel calendar: uses date fields
public/dashboard.js - Management panel → Marketing pages: uses plans
public/dashboard.js - Management panel → Shared UI: uses helpers
public/dashboard.js - Booking experience → Shared UI: uses helpers
public/booking.js - Panel calendar → Booking experience: uses date stepping
public/panel-calendar.js - Panel calendar → Shared UI: uses helpers
public/panel-calendar.js - Marketing pages → Shared UI: uses helpers
public/marketing.js - HTTP server → PostgreSQL: opens database
server/index.mjs - HTTP server → Page routing: dispatches pages
server/index.mjs - HTTP server → API handlers: dispatches requests
server/index.mjs - HTTP server → Accounts and sessions: configures accounts
server/index.mjs - HTTP server → Platform administration: configures admin
server/index.mjs - HTTP server → Subscriptions: configures billing
server/index.mjs - HTTP server → Photo files: stores photos
server/index.mjs - HTTP server → Verification mail: creates mailer
server/index.mjs - API handlers → Shop gallery: uses gallery
server/api.mjs - API handlers → Shop profiles: uses profile
server/api.mjs - API handlers → Request limits: uses limits
server/api.mjs - API handlers → API responses: uses responses
server/api.mjs - Platform administration → Subscriptions: uses billing
server/admin.mjs - Platform administration → Shop gallery: uses gallery
server/admin.mjs - Platform administration → Shop profiles: uses profile
server/admin.mjs - Accounts and sessions → Email verification: creates verification
server/auth.mjs - Accounts and sessions → Request limits: uses limits
server/auth.mjs - Accounts and sessions → API responses: uses responses
server/auth.mjs - Shop gallery → Request limits: limits uploads
server/gallery.mjs - Shop gallery → Shop profiles: validates fields
server/gallery.mjs - Shop gallery → API responses: raises errors
server/gallery.mjs - Subscriptions → Stripe: calls API
server/billing.mjs - Verification mail → SMTP service: sends mail
README.md - Email verification → Verification mail: delivers links
- HTTP server → PostgreSQL: migrates schema
README.md - PostgreSQL → Photo files: tracks photo storage
server/index.mjs