How induwara1006/enterprise-cinema-booking-platform works
CineBook is a multi-tenant cinema booking platform. Customers browse cinemas and showtimes, select seats held with live availability updates, pay through PayPal, and receive confirmed tickets; users can also manage bookings and reviews. Cinema and platform administrators manage listings, showtimes, applications, and reporting. The graph preserves these documented capabilities while distinguishing frontend routing/API access from backend controllers, services, and MongoDB models. Some feature modules are represented by their exact tree paths but were not sampled, so their internal call relationships are not asserted.
Main entry points: server.ts Express server · paymentController.ts Payment workflow · api.ts HTTP API client · App.tsx Web app routing
Components 25
Customer application
- Web app routing
frontend/src/App.tsx - Auth and profile
frontend/src/contexts/AuthContext.tsx - HTTP API client
frontend/src/services/api.ts - Seat booking UI
frontend/src/contexts/BookingContext.tsx - Payment screens
frontend/src/pages/Payment.tsx
Cinema catalog
- Movie and cinema views
frontend/src/components/movies/MovieDetail.tsx - Movie catalog
backend/src/controllers/movieController.ts - Cinema management
backend/src/controllers/cinemaController.ts - Showtime management
backend/src/controllers/showtimeController.ts
Reservations and payment
- Seat availability
backend/src/controllers/seatController.ts - Booking workflow
backend/src/controllers/bookingController.ts - Payment workflow
backend/src/controllers/paymentController.ts - Seat event service
backend/src/services/websocket.ts - Hold cleanup
backend/src/services/seatCleanup.ts
Identity and feedback
- Reviews and ratings
frontend/src/components/reviews/ReviewForm.tsx - JWT and role checks
backend/src/middlewares/auth.ts - User accounts
backend/src/controllers/userController.ts - Review moderation
backend/src/controllers/reviewController.ts
Administration and platform
- Express server
backend/src/server.ts - Cinema applications
backend/src/controllers/applicationController.ts - Admin analytics
backend/src/controllers/analyticsController.ts - Email delivery
backend/src/services/email.ts
Other components
- Customer
- PayPal checkout
- MongoDB
Connections 35
- Customer → Web app routing: uses
- Web app routing → Auth and profile: provides auth
frontend/src/App.tsx - Web app routing → Seat booking UI: routes booking
frontend/src/App.tsx - Web app routing → Movie and cinema views: routes catalog
frontend/src/App.tsx - Seat booking UI → HTTP API client: requests data
frontend/src/contexts/BookingContext.tsx - Payment screens → HTTP API client: requests payment
frontend/src/pages/Payment.tsx - Reviews and ratings → HTTP API client: submits reviews
frontend/src/components/reviews/ReviewForm.tsx - Auth and profile → HTTP API client: auth requests
frontend/src/contexts/AuthContext.tsx - HTTP API client → Express server: HTTP requests
- Express server → Movie catalog: mounts routes
backend/src/server.ts - Express server → Cinema management: mounts routes
backend/src/server.ts - Express server → Showtime management: mounts routes
backend/src/server.ts - Express server → Seat availability: mounts routes
backend/src/server.ts - Express server → Booking workflow: mounts routes
backend/src/server.ts - Express server → Payment workflow: mounts routes
backend/src/server.ts - Express server → Review moderation: mounts routes
backend/src/server.ts - Express server → User accounts: mounts routes
backend/src/server.ts - Express server → Cinema applications: routes requests
- Express server → Seat event service: initializes
backend/src/server.ts - Booking workflow → Seat event service: broadcasts updates
backend/src/controllers/bookingController.ts - Seat availability → Seat event service: broadcasts availability
backend/src/controllers/seatController.ts - Express server → Hold cleanup: starts cleanup
backend/src/server.ts - Booking workflow → Hold cleanup: checks holds
backend/src/controllers/bookingController.ts - Payment workflow → Hold cleanup: checks holds
backend/src/controllers/paymentController.ts - Payment workflow → PayPal checkout: creates and captures
- Payment workflow → Email delivery: sends receipts
backend/src/controllers/paymentController.ts - JWT and role checks → User accounts: loads identity
backend/src/middlewares/auth.ts - Booking workflow → MongoDB: reads and writes
backend/src/controllers/bookingController.ts - Payment workflow → MongoDB: reads and writes
backend/src/controllers/paymentController.ts - Review moderation → MongoDB: reads and writes
backend/src/controllers/reviewController.ts - Movie catalog → MongoDB: reads and writes
backend/src/controllers/movieController.ts - Customer → Reviews and ratings: rates titles
- Customer → Payment screens: pays for booking
- Cinema applications → MongoDB: stores applications
- Admin analytics → MongoDB: aggregates reports