How pragati0609/travelgo-app works
TravelGo is a Flask travel-booking web app with a catalog of sample bus, train, flight, and hotel listings. Users register or log in, search and select travel, submit booking details through checkout, then view or cancel bookings on a personal dashboard. Flask route handlers coordinate these steps; a shared AWS service handles user and booking operations, DynamoDB persistence, and SNS notifications. The README documents EC2 hosting and CloudWatch monitoring, but the sampled runtime source does not show their wiring.
Main entry points: booking.py Booking Routes · app.py Flask App · aws_service.py AWS Service Layer · dashboard.py Dashboard Routes
Components 18
Web Application
- Flask App
app.py - App Configuration
config.py
Account Management
- Authentication Routes
routes/auth.py - Login & Register
templates/auth
Travel Booking
- Booking Routes
routes/booking.py - Travel Catalog
utils/data.py - Search Results
templates/booking/search.html - Seat Selection
templates/booking/bus_seats.html - Payment Checkout
templates/booking/payment.html - Booking Confirmation
templates/booking/confirmation.html - Dashboard Routes
routes/dashboard.py - Travel Dashboard
templates/dashboard/index.html
AWS Services
- AWS Service Layer
services/aws_service.py - DynamoDB
- Amazon SNS
- Amazon EC2
- Amazon CloudWatch
Other components
- Traveler
Connections 21
- Traveler → Flask App: uses
README.md - Flask App → App Configuration: loads
app.py - Flask App → Authentication Routes: registers
app.py - Flask App → Booking Routes: registers
app.py - Flask App → Dashboard Routes: registers
app.py - Authentication Routes → Login & Register: renders
routes/auth.py - Authentication Routes → AWS Service Layer: authenticates
routes/auth.py - Booking Routes → Travel Catalog: filters
routes/booking.py - Booking Routes → Search Results: renders
routes/booking.py - Booking Routes → Seat Selection: renders
routes/booking.py - Booking Routes → Payment Checkout: renders
routes/booking.py - Booking Routes → AWS Service Layer: creates bookings
routes/booking.py - Booking Routes → AWS Service Layer: loads confirmation
routes/booking.py - Booking Routes → Booking Confirmation: renders
routes/booking.py - Dashboard Routes → AWS Service Layer: queries bookings
routes/dashboard.py - Dashboard Routes → AWS Service Layer: cancels bookings
routes/dashboard.py - Dashboard Routes → Travel Dashboard: renders
routes/dashboard.py - AWS Service Layer → DynamoDB: reads and writes
services/aws_service.py - AWS Service Layer → Amazon SNS: publishes alerts
services/aws_service.py - Amazon EC2 → Flask App: hosts
README.md - Flask App → Amazon CloudWatch: logs and metrics
README.md