How tirthghumo827-netizen/tg_backend works
TirthGhumo is a FastAPI backend for travel bookings and related services. Customers submit trip or darshan requests, while staff-facing routes support booking administration; the application also exposes authentication, coupons, and QR-based payment amount/QR endpoints. The sampled Divya Drishti flow delegates booking, approval, session, and review operations from its router to a service that persists records. The README is empty, and several package implementations were not sampled, so their product areas are shown without speculative internal wiring.
Main entry points: main.py FastAPI application · divya_drishti.py Divya Drishti API · database.py SQL database · service.py Darshan operations
Components 24
Application entry
- FastAPI application
main.py
Trip products
- Manali trips
app/packages/manali.py - Tamia trips
app/packages/tamia.py - Rishikesh trips
app/packages/rishikesh.py - Saarthi bookings
app/packages/saarthi.py - One Day Trek
app/packages/odt.py - Pachmarhi trips
app/packages/pachmarhi.py - Enquiries
app/packages/enquiry.py - Hiring
app/packages/hiring.py - Bhajan jamming
app/packages/bhajan_jamming.py
Darshan service
- VR Darshan
app/packages/vr_darshan.py - Divya Drishti API
app/divya_drishti/routers/divya_drishti.py - Executive panel
app/divya_drishti/routers/executive_panel.py - Darshan operations
app/divya_drishti/services/service.py - Slot availability
app/divya_drishti/slots.py
Shared services
- Authentication
app/routers/auth.py - User panel
app/routers/user_panel.py - Coupon routes
app/routers/coupons.py - Coupon validation
app/services/coupon_service.py - Heritage coupons
app/services/heritage_coupon_service.py - QR payment tools
app/utils/qr.py - SQL database
app/database.py
Other components
- Customer
- Staff
Connections 22
- Customer → FastAPI application: submits requests
- Staff → FastAPI application: uses staff routes
- FastAPI application → Manali trips: mounts routes
- FastAPI application → Tamia trips: mounts routes
- FastAPI application → Rishikesh trips: mounts routes
- FastAPI application → Saarthi bookings: mounts routes
- FastAPI application → One Day Trek: mounts routes
- FastAPI application → Enquiries: mounts routes
- FastAPI application → Hiring: mounts routes
- FastAPI application → VR Darshan: mounts routes
- FastAPI application → Bhajan jamming: mounts routes
- FastAPI application → Divya Drishti API: mounts routes
- FastAPI application → Executive panel: mounts routes
- FastAPI application → Authentication: mounts routes
- FastAPI application → User panel: mounts routes
- FastAPI application → Coupon routes: mounts routes
- FastAPI application → QR payment tools: mounts routes
- FastAPI application → SQL database: creates tables
- Divya Drishti API → Darshan operations: delegates operations
- Darshan operations → SQL database: reads and writes
- Divya Drishti API → Slot availability: uses availability
- Authentication → SQL database: loads user records