How sowmyanamala/spabooking works
Spagram is a Next.js marketplace for finding wellness therapists and managing bookings, with separate customer, therapist, and administrator areas. The clearest sampled workflow is customer discovery: the home page filters therapists through a remote API, then stores a selected therapist and opens its detail page. Booking, payment, onboarding, and account-management stages are represented by routes and components in the tree, but their internal wiring is not established by the sampled source. The admin dashboard’s statistics requests and the local services API are directly evidenced.
Main entry points: admin/index.js Admin dashboard · pages/index.js Search therapists · model-backend/index.js Therapist account · ConfirmAndPayPage.js Confirm and pay
Components 23
Therapist discovery
- Search therapists
pages/index.js - Therapist filter API
- Selected therapist
pages/therapistDetails.js
Booking and payment
- Availability and schedule
pages/schedule.js - Booking details
pages/booking.js - Confirm and pay
pages/ConfirmAndPayPage.js - Payment API
pages/api/pay.js - Square payments
- Payment status pages
pages/cardsaved/index.js
Customer and therapist accounts
- Customer onboarding
components/onboarding/ClientReg.jsx - Customer account
pages/customer-backend/index.js - Customer orders and reviews
pages/customer-backend/orders.js - Therapist account
pages/model-backend/index.js - Therapist orders
pages/model-backend/orders.js - Therapist availability
pages/model-backend/availability.js
Administration
- Admin dashboard
components/admin/index.js - User administration
pages/api/admin/users.js - Therapist administration
pages/api/admin/therapists.js - Service administration
pages/api/admin/services.js - Pending orders API
api/getpendingorders.php
Shared application
- Service catalog
components/data/services.js - Application layouts
components/layout.js
Other components
- Customer
Connections 19
- Customer → Search therapists: searches
- Search therapists → Therapist filter API: fetches filters
- Search therapists → Selected therapist: stores selection
- Customer → Customer onboarding: registers
- Customer → Availability and schedule: chooses time
- Customer → Booking details: books
- Customer → Confirm and pay: pays
- Confirm and pay → Payment API: submits payment
- Payment API → Square payments: processes payment
- Customer → Payment status pages: views outcome
- Customer → Customer account: manages account
- Customer account → Customer orders and reviews: opens orders
- Therapist account → Therapist orders: manages orders
- Therapist account → Therapist availability: manages availability
- Admin dashboard → User administration: fetches counts
- Admin dashboard → Therapist administration: fetches counts
- Admin dashboard → Pending orders API: fetches orders
- Admin dashboard → Service administration: manages services
- Service administration → Service catalog: reads catalog