How bk-nexus/tickbron works
TICKBRON is a hotel-booking platform with guest, partner, and admin experiences backed by a Django API. The guest journey spans property discovery, booking, and payment; supporting capabilities include account/review management, partner operations, promotions, and administration. The frontend routes and selected backend relationships are evidenced by excerpts and the SOURCE INDEX. Many view-to-service and frontend-to-API connections are unsampled, so those links are omitted or marked unverified rather than asserted as observed calls.
Main entry points: bookings/models.py Booking lifecycle · App.tsx Application routes · properties/models.py Property catalogue · webhooks.py Payment webhooks
Components 24
Guest experience
- Application routes
frontend/src/App.tsx - Property search
frontend/src/pages/SearchResultsPage.tsx - Property details
frontend/src/pages/PropertyDetailPage.tsx - Property search service
backend/properties/search.py - Property catalogue
backend/properties/models.py
Booking and payments
- Booking checkout
frontend/src/pages/BookingPage.tsx - Guest bookings
frontend/src/pages/BookingsPage.tsx - Booking lifecycle
backend/bookings/models.py - Booking pricing
backend/bookings/pricing.py - Booking state rules
backend/bookings/state_machine.py - Booking scheduled tasks
backend/bookings/tasks.py - Payment webhooks
backend/payments/webhooks.py - Payment provider adapters
backend/payments/adapters.py - Payment records
backend/payments/models.py
Hotel operations
- Partner dashboard
frontend/src/pages/PartnerDashboardPage.tsx - Admin dashboard
frontend/src/pages/AdminDashboardPage.tsx - Promotion rules
backend/promotions/service.py - Promotion scheduled task
backend/promotions/tasks.py
Accounts and platform
- Accounts and reviews
backend/accounts/models.py - Authentication context
frontend/src/contexts/AuthContext.tsx - Localization provider
frontend/src/i18n/I18nContext.tsx - Currency rates
backend/currency/rates.py
Other components
- Guest
- Database
Connections 31
- Guest → Application routes: uses
frontend/src/App.tsx - Application routes → Property search: routes to
frontend/src/App.tsx - Application routes → Property details: routes to
frontend/src/App.tsx - Application routes → Booking checkout: routes to
frontend/src/App.tsx - Application routes → Guest bookings: routes to
frontend/src/App.tsx - Application routes → Partner dashboard: routes to
frontend/src/App.tsx - Application routes → Admin dashboard: routes to
frontend/src/App.tsx - Application routes → Authentication context: provides context
frontend/src/App.tsx - Application routes → Localization provider: provides context
frontend/src/App.tsx - Property search service → Property catalogue: queries
backend/properties/search.py - Booking lifecycle → Property catalogue: uses property data
backend/bookings/models.py - Booking lifecycle → Booking pricing: uses pricing
backend/bookings/models.py - Booking lifecycle → Booking state rules: validates transitions
backend/bookings/models.py - Booking lifecycle → Currency rates: reads rates
backend/bookings/models.py - Booking lifecycle → Payment records: uses payment records
backend/bookings/models.py - Booking scheduled tasks → Booking lifecycle: processes expirations
backend/bookings/tasks.py - Booking scheduled tasks → Booking lifecycle: completes stays
backend/bookings/tasks.py - Payment webhooks → Payment provider adapters: gets adapter
backend/payments/webhooks.py - Payment webhooks → Payment records: updates records
backend/payments/webhooks.py - Payment webhooks → Booking lifecycle: updates booking
backend/payments/webhooks.py - Promotion rules → Property catalogue: locks property
backend/promotions/service.py - Promotion scheduled task → Promotion rules: runs cleanup
backend/promotions/tasks.py - Accounts and reviews → Database: persists
- Property catalogue → Database: persists
- Booking lifecycle → Database: persists
- Payment records → Database: persists
- Property search → Property search service: requests search
- Property details → Property catalogue: requests details
- Booking checkout → Booking lifecycle: submits booking
- Booking checkout → Payment provider adapters: initiates payment
- Partner dashboard → Promotion rules: manages promotions