How vageeshwaran07/movie-ticket-booking-system works
This repository combines a Django movie-ticketing application with a FastAPI service for seat locking and payment-related operations, plus a browser frontend. The intended product journey is to discover movies and shows, select seats, lock them, and confirm a booking after payment. The graph includes the sampled domain models and explicitly evidenced calls. The README is empty; frontend behavior and several Django routing details were not sampled, so those connections are omitted rather than inferred.
Main entry points: payments.py Payment operations · seats.py Seat locking · mongo.py MongoDB seats · main.py FastAPI application
Components 20
Django ticketing
- Catalog API
movieticket/api/views.py - API serializers
movieticket/api/serializers.py - Movies
movieticket/movies/models.py - Theatres and screens
movieticket/theatres/models.py - Show scheduling
movieticket/shows/models.py - Booking records
movieticket/bookings/models.py - Booking handlers
movieticket/bookings/views.py
Seat and payment API
- FastAPI application
fastapi_service/main.py - JWT verification
fastapi_service/auth.py - Seat locking
fastapi_service/routers/seats.py - Payment operations
fastapi_service/routers/payments.py - Booking confirmation
fastapi_service/services/booking_services.py - Seat state
fastapi_service/db/seat_model.py - MongoDB seats
fastapi_service/db/mongo.py
Identity
- User accounts
movieticket/users/models.py - User manager
movieticket/users/managers.py - Authentication backend
movieticket/users/backends.py
Client
- Browser frontend
frontend/app.js
Other components
- Customer
- Razorpay
Connections 24
- Customer → Browser frontend: uses
- Customer → Catalog API: requests catalog
- Customer → Seat locking: locks seats
- Customer → Payment operations: pays
- Catalog API → API serializers: serializes
movieticket/api/views.py - Booking handlers → Booking records: uses
movieticket/bookings/views.py - Booking records → User accounts: references
movieticket/bookings/models.py - Booking records → Show scheduling: references
movieticket/bookings/models.py - Show scheduling → Movies: references
movieticket/shows/models.py - Show scheduling → Theatres and screens: references
movieticket/shows/models.py - User accounts → User manager: delegates creation
movieticket/users/models.py - FastAPI application → Seat locking: registers
fastapi_service/main.py - FastAPI application → Payment operations: registers
fastapi_service/main.py - FastAPI application → MongoDB seats: creates TTL index
fastapi_service/main.py - Seat locking → JWT verification: verifies token
fastapi_service/routers/seats.py - Payment operations → JWT verification: verifies token
fastapi_service/routers/payments.py - Seat locking → MongoDB seats: updates seats
fastapi_service/routers/seats.py - Seat locking → Seat state: checks status
fastapi_service/routers/seats.py - Payment operations → MongoDB seats: reads seat locks
fastapi_service/routers/payments.py - Payment operations → Seat state: checks status
fastapi_service/routers/payments.py - Payment operations → Booking confirmation: confirms booking
fastapi_service/routers/payments.py - Booking confirmation → MongoDB seats: updates seats
fastapi_service/services/booking_services.py - Booking confirmation → Seat state: checks status
fastapi_service/services/booking_services.py - Payment operations → Razorpay: creates orders
fastapi_service/routers/payments.py