How qassimm/glowbar works
GlowBar is a beauty-services website whose main customer journey is browsing services, opening a service category, and booking an appointment. The booking form gathers location, services, date/time, customer details, and payment preference; its hook validates and submits the booking to an API that stores it in MongoDB. The site also presents brand and editorial content and offers contact inquiries. The excerpts show the booking and blog data flows directly; some page and API connections are supported only by the source index, so unsampled behavior is not expanded.
Main entry points: BookingForm .tsx Booking Form · mongodb.ts MongoDB Client · Services.tsx Home Services · page.tsx About Page
Components 21
Customer Pages
- Home Page
app/page.tsx - Services Page
app/services/page.tsx - Service Detail
app/services/[slug]/page.tsx - About Page
app/about/page.tsx - Contact Page
app/contact/page.tsx - Booking Page
app/booking/page.tsx
Brand And Content
- Home Services
component/Home/Services.tsx - Service Cards
component/UI/ServiceCards.tsx - About Blogs
component/About/Blogs.tsx - Brand Journey
component/About/Journey.tsx - Contact Form
component/Contact/Form.tsx - Blog Detail
app/blogs/[slug]/page.tsx
Appointment Booking
- Booking Form
component/Booking/BookingForm .tsx - Booking State
Hooks/useBookingForm.ts - Service Picker
component/bookingUI/ServicePicker.tsx - Booking Success
component/bookingUI/BookingSuccess.tsx
Data Services
- Booking API
app/api/bookings/route.ts - Services API
app/api/services/route.ts - Blogs API
app/api/blogs/route.ts - MongoDB Client
lib/mongodb.ts
Other components
- Website Visitor
Connections 21
- Website Visitor → Home Page: visits
README.md - Website Visitor → Services Page: browses
README.md - Website Visitor → Booking Page: books
README.md - Website Visitor → Contact Page: inquires
README.md - Home Page → Home Services: renders
app/page.tsx - Home Services → Services API: fetches
component/Home/Services.tsx - Home Services → Service Cards: renders
component/Home/Services.tsx - Service Cards → Service Detail: links to
component/UI/ServiceCards.tsx - Services Page → Service Detail: links to
- About Page → Brand Journey: renders
app/about/page.tsx - About Page → About Blogs: renders
app/about/page.tsx - Contact Page → Contact Form: renders
app/contact/page.tsx - Booking Page → Booking Form: renders
app/booking/page.tsx - Booking Form → Booking State: uses
component/Booking/BookingForm .tsx - Booking Form → Service Picker: renders
component/Booking/BookingForm .tsx - Booking Form → Booking Success: renders
component/Booking/BookingForm .tsx - Booking State → Booking API: submits
Hooks/useBookingForm.ts - Booking API → MongoDB Client: writes booking
app/api/bookings/route.ts - Services API → MongoDB Client: uses client
app/api/services/route.ts - Blogs API → MongoDB Client: uses client
app/api/blogs/route.ts - Blog Detail → MongoDB Client: reads blog
app/blogs/[slug]/page.tsx