How tapan48/event_ticket_booking_api works
This is an event-ticketing marketplace: attendees discover events, reserve tickets, pay, and use tickets for entry; organizers manage venues, events, ticket tiers, and check-in. The React app routes users through these tasks and calls a Django REST API. Booking logic locks stock and updates orders transactionally; Celery handles expiry and ticket email. The README documents the runtime and API workflow. Some backend capabilities are represented at subsystem level because their detailed source was not sampled.
Main entry points: App.tsx App routing · tasks.py Celery tasks · services.py Booking services · api.ts API client
Components 30
Web application
- App routing
frontend/src/App.tsx - Session and auth
frontend/src/auth.tsx - Event browsing
frontend/src/pages/catalog.tsx - Account profile
frontend/src/pages/account.tsx - Orders and tickets
frontend/src/pages/orders.tsx - Organizer workspace
frontend/src/pages/organizer.tsx - Shared components
frontend/src/components/shared.tsx - Button control
frontend/src/components/ui/button.tsx - Input control
frontend/src/components/ui/input.tsx - Dialog control
frontend/src/components/ui/dialog.tsx - Display formatting
frontend/src/lib/format.ts - API client
frontend/src/lib/api.ts - API types
frontend/src/lib/types.ts
Identity and catalog
- Account endpoints
apps/accounts/views.py - Event catalog API
apps/events/views.py - Catalog filters
apps/events/filters.py - Events and inventory
apps/events/models.py
Booking and entry
- Order and check-in API
apps/orders/views.py - Booking services
apps/orders/services.py - Orders and tickets
apps/orders/models.py
Background processing
- Celery tasks
apps/orders/tasks.py - Ticket email
apps/orders/emails.py - Redis broker
Shared platform
- Django API
config/api_router.py - Access permissions
common/permissions.py - PostgreSQL
- Shared model base
common/models.py
Other components
- Attendee
- Organizer
- Staff
Connections 38
- Attendee → App routing: uses
README.md - Organizer → App routing: uses
README.md - Staff → App routing: uses
README.md - App routing → Session and auth: provides auth
frontend/src/App.tsx - App routing → Event browsing: routes to
frontend/src/App.tsx - App routing → Account profile: routes to
frontend/src/App.tsx - App routing → Orders and tickets: routes to
frontend/src/App.tsx - App routing → Organizer workspace: routes to
frontend/src/App.tsx - Session and auth → API client: calls
frontend/src/auth.tsx - Event browsing → API client: calls
frontend/src/pages/catalog.tsx - Organizer workspace → API client: calls
frontend/src/pages/organizer.tsx - Shared components → Display formatting: formats with
frontend/src/components/shared.tsx - Shared components → Button control: renders
frontend/src/components/shared.tsx - Organizer workspace → Input control: renders
frontend/src/pages/organizer.tsx - Organizer workspace → Dialog control: uses
frontend/src/pages/organizer.tsx - API client → API types: uses types
frontend/src/lib/api.ts - API client → Django API: requests
README.md - Django API → Account endpoints: routes to
config/api_router.py - Django API → Event catalog API: routes to
config/api_router.py - Django API → Order and check-in API: routes to
config/api_router.py - Event catalog API → Catalog filters: filters with
apps/events/views.py - Event catalog API → Events and inventory: queries
apps/events/views.py - Event catalog API → Access permissions: checks access
apps/events/views.py - Order and check-in API → Booking services: calls
apps/orders/views.py - Order and check-in API → Orders and tickets: queries
apps/orders/views.py - Order and check-in API → Access permissions: checks access
apps/orders/views.py - Booking services → Events and inventory: locks inventory
apps/orders/services.py - Booking services → Orders and tickets: creates and updates
apps/orders/services.py - Booking services → Celery tasks: queues email
apps/orders/services.py - Celery tasks → Booking services: expires orders
apps/orders/tasks.py - Celery tasks → Orders and tickets: loads paid orders
apps/orders/tasks.py - Celery tasks → Ticket email: sends tickets
apps/orders/tasks.py - Celery tasks → Redis broker: uses broker
README.md - Events and inventory → PostgreSQL: persists
README.md - Orders and tickets → PostgreSQL: persists
README.md - Events and inventory → Shared model base: inherits
apps/events/models.py - Orders and tickets → Shared model base: inherits
apps/orders/models.py - Ticket email → PostgreSQL: reads order data