How ameershahal/luxeb works
Luxe is a beauty salon and training-academy storefront with appointment booking, product sales, courses, and an administrative back office. Customers discover services, choose a booking through the booking wizard, and can proceed through checkout; the Stripe webhook handles post-payment fulfillment. The graph preserves the catalog, gallery, course, review, and administration branches visible in the tree. Several routes and components were not sampled, so their internal connections are omitted rather than inferred.
Main entry points: stripe/route.ts Stripe Webhook · mongodb.ts MongoDB Connector · bookings/route.ts Booking API · create-checkout-session/route.ts Checkout Session
Components 29
Customer Experience
- Home Page
app/page.tsx - Service Pages
app/services/page.tsx - Service Listings
components/services-section.tsx - Course Pages
app/courses/page.tsx - Gallery
app/gallery/page.tsx - Reviews
app/api/reviews/route.ts
Appointments
- Booking Page
app/booking/page.tsx - Booking Wizard
components/booking/booking-wizard.tsx - Booking API
app/api/bookings/route.ts - Slot Availability
lib/booking-availability.ts - Booking Fulfillment
lib/fulfill-booking.ts
Commerce and Payments
- Checkout Session
app/api/create-checkout-session/route.ts - Stripe
- Stripe Webhook
app/api/webhooks/stripe/route.ts - Shop Pages
app/shop/page.tsx - Product Detail
components/shop/product-detail.tsx - Products API
app/api/products/route.ts - Shopping Cart
contexts/cart-context.tsx - Orders API
app/api/orders/route.ts
Academy Operations
- Course Enrollment
lib/models/CourseEnrollment.ts - Admin Console
app/admin/dashboard/page.tsx - Booking Management
app/admin/bookings/page.tsx - Product Management
app/admin/products/page.tsx
Data and Integrations
- Service Catalog API
app/api/services/route.ts - MongoDB Connector
lib/mongodb.ts - Product Records
lib/models/Product.ts - Booking Records
lib/models/Booking.ts - Email Service
lib/email.ts
Other components
- Customer
Connections 28
- Customer → Home Page: browses
- Home Page → Service Listings: renders
app/page.tsx - Service Listings → Service Catalog API: fetches
components/services-section.tsx - Service Pages → Booking Page: links to book
- Customer → Booking Page: starts booking
- Booking Page → Booking Wizard: renders
app/booking/page.tsx - Booking API → MongoDB Connector: connects
app/api/bookings/route.ts - Booking API → Booking Records: reads and writes
app/api/bookings/route.ts - Booking API → Email Service: sends email
app/api/bookings/route.ts - Customer → Shop Pages: browses
- Shop Pages → Product Detail: shows products
- Product Detail → MongoDB Connector: connects
app/shop/[id]/page.tsx - Product Detail → Product Records: reads
app/shop/[id]/page.tsx - Products API → MongoDB Connector: connects
app/api/products/route.ts - Products API → Product Records: queries and creates
app/api/products/route.ts - Shopping Cart → Checkout Session: starts checkout
- Checkout Session → Slot Availability: checks slot
app/api/create-checkout-session/route.ts - Checkout Session → Stripe: creates session
app/api/create-checkout-session/route.ts - Stripe → Stripe Webhook: notifies payment
- Stripe Webhook → Stripe: verifies event
app/api/webhooks/stripe/route.ts - Stripe Webhook → MongoDB Connector: connects
app/api/webhooks/stripe/route.ts - Stripe Webhook → Booking Fulfillment: fulfills booking
app/api/webhooks/stripe/route.ts - Stripe Webhook → Course Enrollment: creates enrollment
app/api/webhooks/stripe/route.ts - Customer → Course Pages: explores courses
- Customer → Gallery: views work
- Customer → Reviews: uses reviews
- Admin Console → Booking Management: manages bookings
- Admin Console → Product Management: manages products