How manikanta000001/yogastories works
YogaPT combines a public yoga discovery and booking site with backend APIs and trainer-facing administration. The principal flow is practice selection, future-date/session availability, client details, booking submission, and payment handling; bookings update client/session records and trigger notifications. Administrative capabilities include class and session management, booking/client oversight, dashboard analytics, and announcements. The README documents the public booking stages and class/session experience; source excerpts and the SOURCE INDEX expose only selected implementation wiring, so uncertain links are omitted or marked dashed.
Main entry points: routes API routes · bookingController.js Booking operations · classController.js Class operations · sessionController.js Session operations
Components 25
Public experience
- Public website
Frontend/src/App.jsx - Practice discovery
Frontend/src/components/practice - Booking flow
Frontend/src/components/modals/BookingModal.jsx - Frontend API client
Frontend/src/services/api.js
Booking and records
- Backend API server
Backend/src/server.js - API routes
Backend/src/routes - Booking operations
Backend/src/controllers/bookingController.js - Class operations
Backend/src/controllers/classController.js - Session operations
Backend/src/controllers/sessionController.js - Booking records
Backend/src/models/Booking.js - Class records
Backend/src/models/Class.js - Session records
Backend/src/models/Session.js - Client records
Backend/src/models/Client.js
Trainer administration
- Admin pages
Frontend/src/pages/admin - Admin layout
Frontend/src/components/admin/layout/AdminLayout.jsx - Dashboard analytics
Backend/src/controllers/dashboardController.js - Client management
Backend/src/controllers/clientController.js - Announcements
Backend/src/controllers/announcementController.js
Payments
- PayU handling
Backend/src/controllers/payuController.js - Cashfree handling
Backend/src/controllers/cashfreeController.js
Notifications
- Booking notifications
Backend/src/services/notificationService.js - Email delivery
Backend/src/services/emailService.js - WhatsApp delivery
Backend/src/services/whatsappService.js
Other components
- Student
- Payment provider
Connections 36
- Student → Public website: explores
README.md - Public website → Practice discovery: renders
Frontend/src/App.jsx - Practice discovery → Booking flow: opens booking
Frontend/src/App.jsx - Booking flow → Frontend API client: requests data
Frontend/src/components/modals/BookingModal.jsx - Frontend API client → Backend API server: calls API
- Backend API server → API routes: mounts routes
Backend/src/server.js - API routes → Booking operations: routes requests
Backend/src/routes/bookingRoutes.js - API routes → Class operations: routes requests
Backend/src/routes/classRoutes.js - API routes → Session operations: routes requests
Backend/src/routes/sessionRoutes.js - API routes → Client management: routes requests
Backend/src/routes/clientRoutes.js - API routes → Dashboard analytics: routes requests
Backend/src/routes/dashboardRoutes.js - API routes → Announcements: routes requests
Backend/src/routes/announcementRoutes.js - Booking operations → Booking records: reads and writes
Backend/src/controllers/bookingController.js - Booking operations → Client records: reads and writes
Backend/src/controllers/bookingController.js - Booking operations → Session records: reads and updates
Backend/src/controllers/bookingController.js - Booking operations → Class records: reads
Backend/src/controllers/bookingController.js - Class operations → Class records: manages
Backend/src/controllers/classController.js - Class operations → Session records: uses
Backend/src/controllers/classController.js - Class operations → Booking records: checks bookings
Backend/src/controllers/classController.js - Session operations → Session records: manages
Backend/src/controllers/sessionController.js - Session operations → Class records: uses
Backend/src/controllers/sessionController.js - Session operations → Booking records: checks bookings
Backend/src/controllers/sessionController.js - Admin pages → Admin layout: uses layout
Frontend/src/pages/admin/Clients.jsx - Admin pages → Frontend API client: requests admin data
Frontend/src/pages/admin/Clients.jsx - Admin pages → Frontend API client: manages sessions
Frontend/src/pages/admin/Sessions.jsx - Client management → Client records: reads and updates
Backend/src/controllers/clientController.js - Client management → Booking records: reads
Backend/src/controllers/clientController.js - Client management → Session records: reads
Backend/src/controllers/clientController.js - Booking operations → Booking notifications: notifies
Backend/src/controllers/bookingController.js - Booking notifications → Email delivery: sends email
Backend/src/services/notificationService.js - Booking notifications → WhatsApp delivery: sends WhatsApp
Backend/src/services/notificationService.js - Booking flow → PayU handling: starts payment
- PayU handling → Payment provider: submits payment
- Cashfree handling → Payment provider: handles payment
- API routes → PayU handling: routes callbacks
Backend/src/routes/payuRoutes.js - API routes → Cashfree handling: routes callbacks
Backend/src/routes/cashfreeRoutes.js