How thaihoc1310/ticket-rush works
TicketRush is an event-ticketing platform. Customers browse events, select seats, join a virtual queue when sales are constrained, book and pay, then access tickets; administrators manage events, venues, seating, users, payments, and queue activity. The backend separates HTTP routing from domain services and also runs scheduled jobs and WebSocket/pub-sub features. The README confirms the product capabilities and PostgreSQL/Redis stack; sampled backend files support several route-to-service links. Frontend page-to-API wiring and some backend internals were not sampled, so those relationships are omitted or marked unverified.
Main entry points: main.py HTTP API · App.tsx Web app · DashboardPage.tsx Admin portal · auth.py Authentication
Components 23
Customer app
- Web app
frontend/src/App.tsx - Event browsing
frontend/src/pages/public/EventListPage.tsx - Seat selection
frontend/src/pages/booking/SeatSelectionPage.tsx - Virtual queue
frontend/src/pages/booking/WaitingRoomPage.tsx - Checkout
frontend/src/pages/booking/CheckoutPage.tsx - Ticket access
frontend/src/pages/customer/MyTicketsPage.tsx
Admin app
- Admin portal
frontend/src/pages/admin/DashboardPage.tsx
Catalog backend
- HTTP API
backend/app/main.py - Event management
backend/app/routers/events.py - Venue management
backend/app/routers/venues.py - Authentication
backend/app/routers/auth.py - Auth service
backend/app/services/auth_service.py
Booking backend
- Booking routes
backend/app/routers/bookings.py - Booking service
backend/app/services/booking_service.py - Payment routes
backend/app/routers/payments.py
Realtime operations
- Queue routes
backend/app/routers/queue.py - WebSocket channels
backend/app/ws/queue_ws.py - Scheduled jobs
backend/app/scheduler/setup.py
Platform data
- Database access
backend/app/database.py - PostgreSQL
- Redis client
backend/app/redis.py
Other components
- Customer
- Administrator
Connections 20
- Customer → Web app: uses
- Administrator → Admin portal: uses
- Web app → Event browsing: presents
- Web app → Seat selection: presents
- Web app → Virtual queue: presents
- Web app → Checkout: presents
- Web app → Ticket access: presents
- Web app → HTTP API: calls
- Admin portal → HTTP API: calls
- HTTP API → Authentication: routes
backend/app/main.py - HTTP API → Event management: routes
backend/app/main.py - HTTP API → Venue management: routes
backend/app/main.py - HTTP API → Booking routes: routes
backend/app/main.py - HTTP API → Payment routes: routes
backend/app/main.py - HTTP API → Queue routes: routes
backend/app/main.py - HTTP API → WebSocket channels: registers
backend/app/main.py - HTTP API → Scheduled jobs: starts
backend/app/main.py - Authentication → Auth service: calls
backend/app/routers/auth.py - Booking routes → Booking service: calls
backend/app/routers/bookings.py - Database access → PostgreSQL: connects
backend/app/database.py