How hoainamchu/tarot-app works
This repository implements a tarot-reading booking platform: customers browse readings and readers, book sessions, pay, and manage bookings; readers and administrators manage bookings and platform operations. The graph includes the two web apps, backend booking/payment/notification capabilities, and core domain records. Backend relationships are supported by excerpts or SOURCE INDEX references; client-to-API connections are shown as unverified because the relevant request wiring was not excerpted. The README is empty.
Main entry points: Booking.php Bookings · AdminController.php Admin operations API · NotificationService.php Notification delivery · BookingController.php Customer booking API
Components 29
Customer web app
- Customer app routes
frontend/user-app/src/App.jsx - Discovery and booking
frontend/user-app/src/pages/Home.jsx - Customer dashboard
frontend/user-app/src/pages/Dashboard.jsx - Payment result
frontend/user-app/src/pages/PaymentResult.jsx - Customer API client
frontend/user-app/src/services/api.js
Admin and reader web app
- Admin app routes
frontend/admin-app/src/App.jsx - Booking operations
frontend/admin-app/src/pages/Bookings/Bookings.jsx - Reader portal
frontend/admin-app/src/pages/ReaderPortal/ReaderPortal.jsx - Admin API client
frontend/admin-app/src/services/api.js
Backend application
- Customer booking API
backend/app/Http/Controllers/Api/User/BookingController.php - Admin operations API
backend/app/Http/Controllers/Api/Admin/AdminController.php - Reader dashboard API
backend/app/Http/Controllers/Api/Reader/ReaderDashboardController.php - Reading content API
backend/app/Http/Controllers/Api/PublicApi/ReadingController.php - VNPay callback API
backend/app/Http/Controllers/Api/Payment/VNPayController.php - Booking creation
backend/app/Services/Booking/CreateBookingService.php - Slot conflict checks
backend/app/Services/Booking/BookingConflictService.php - Booking completion
backend/app/Services/Booking/BookingCompletionService.php - Notification delivery
backend/app/Services/NotificationService.php - Payment gateway config
backend/app/Services/Payment/PaymentGatewayConfig.php
Booking domain
- Bookings
backend/app/Models/Booking.php - Payments
backend/app/Models/Payment.php - Readers
backend/app/Models/Reader.php - Reading services
backend/app/Models/Service.php - User accounts
backend/app/Models/User.php - App settings
backend/app/Models/AppSetting.php - Notifications
backend/app/Models/AppNotification.php
Other components
- Customer
- Administrator
- Reader
Connections 46
- Customer → Customer app routes: uses
- Customer app routes → Discovery and booking: routes to
frontend/user-app/src/App.jsx - Customer app routes → Customer dashboard: routes to
frontend/user-app/src/App.jsx - Customer app routes → Payment result: routes to
frontend/user-app/src/App.jsx - Customer dashboard → Customer API client: uses
- Customer API client → Customer booking API: requests
- Customer API client → Reading content API: requests
- Administrator → Admin app routes: uses
- Reader → Admin app routes: uses
- Admin app routes → Booking operations: routes to
frontend/admin-app/src/App.jsx - Admin app routes → Reader portal: routes to
frontend/admin-app/src/App.jsx - Booking operations → Admin API client: uses
- Reader portal → Admin API client: uses
- Admin API client → Admin operations API: requests
- Admin API client → Reader dashboard API: requests
- Customer booking API → Booking creation: creates via
backend/app/Http/Controllers/Api/User/BookingController.php - Booking creation → Slot conflict checks: checks slots
backend/app/Services/Booking/CreateBookingService.php - Booking creation → Bookings: creates
backend/app/Services/Booking/CreateBookingService.php - Booking creation → Notification delivery: notifies
backend/app/Services/Booking/CreateBookingService.php - Customer booking API → Booking completion: delegates completion
backend/app/Http/Controllers/Api/User/BookingController.php - Customer booking API → Payment gateway config: checks gateway config
backend/app/Http/Controllers/Api/User/BookingController.php - Customer booking API → Payments: reads and updates
backend/app/Http/Controllers/Api/User/BookingController.php - Admin operations API → Bookings: manages
backend/app/Http/Controllers/Api/Admin/AdminController.php - Admin operations API → Payments: reads
backend/app/Http/Controllers/Api/Admin/AdminController.php - Admin operations API → Readers: manages
backend/app/Http/Controllers/Api/Admin/AdminController.php - Admin operations API → Reading services: manages
backend/app/Http/Controllers/Api/Admin/AdminController.php - Admin operations API → User accounts: manages
backend/app/Http/Controllers/Api/Admin/AdminController.php - Reader dashboard API → Slot conflict checks: checks slots
backend/app/Http/Controllers/Api/Reader/ReaderDashboardController.php - Reader dashboard API → Booking creation: creates bookings
backend/app/Http/Controllers/Api/Reader/ReaderDashboardController.php - Reader dashboard API → Booking completion: delegates completion
backend/app/Http/Controllers/Api/Reader/ReaderDashboardController.php - Reader dashboard API → Notification delivery: notifies
backend/app/Http/Controllers/Api/Reader/ReaderDashboardController.php - Reading content API → Readers: reads
backend/app/Http/Controllers/Api/PublicApi/ReadingController.php - VNPay callback API → Payment gateway config: loads config
backend/app/Http/Controllers/Api/Payment/VNPayController.php - VNPay callback API → Payments: updates
backend/app/Http/Controllers/Api/Payment/VNPayController.php - Booking completion → Bookings: updates
backend/app/Services/Booking/BookingCompletionService.php - Booking completion → Notification delivery: notifies
backend/app/Services/Booking/BookingCompletionService.php - Payment gateway config → App settings: reads
backend/app/Services/Payment/PaymentGatewayConfig.php - Payment gateway config → Payments: reads
backend/app/Services/Payment/PaymentGatewayConfig.php - Notification delivery → Notifications: persists
backend/app/Services/NotificationService.php - Notification delivery → User accounts: selects recipients
backend/app/Services/NotificationService.php - Notification delivery → Bookings: loads booking context
backend/app/Services/NotificationService.php - Bookings → User accounts: belongs to
backend/app/Models/Booking.php - Bookings → Readers: belongs to
backend/app/Models/Booking.php - Bookings → Reading services: belongs to
backend/app/Models/Booking.php - Bookings → Payments: has payments
backend/app/Models/Booking.php - Readers → User accounts: belongs to
backend/app/Models/Reader.php