How patelmai48/skyroute-journeys works
SkyRoute is a flight-booking application with a React client and an Express/PostgreSQL backend. The primary journey runs from flight search through results, details, passenger and seat entry, review/payment, booking confirmation, and trip management. The README documents several additional travel, account, and loyalty capabilities; the graph preserves those branches. Some page and backend implementation details were not sampled, so undocumented links are omitted rather than inferred.
Main entry points: App.js App and routing · app.js Express app · FlightResults.js Flight results · PassengerDetails.js Passenger details
Components 31
Client routing
- App and routing
src/App.js
Flight booking
- Search form
src/components/FlightSearchForm.js - Flight results
src/pages/FlightResults.js - Flight inventory
src/data/flights.js - Flight details
src/pages/FlightDetails.js - Passenger details
src/pages/PassengerDetails.js - Seat selection
src/components/SeatSelection.js - Review and payment
src/pages/ReviewBooking.js - Booking confirmation
src/pages/BookingConfirmation.js - My trips
src/pages/MyTrips.js - Manage booking
src/pages/ManageBooking.js
Travel discovery
- Travel datasets
src/data/travelData.js - Explore destinations
src/pages/Explore.js - Destination details
src/pages/DestinationDetails.js - AI trip planner
src/pages/AiTripPlanner.js - Hotels
src/pages/Hotels.js - Flight status
src/pages/FlightStatus.js - Price alerts
src/pages/PriceAlerts.js
Accounts and loyalty
- Login and registration
src/pages/Login.js - Profile
src/pages/Profile.js - Loyalty service
src/services/loyaltyService.js - Dashboard
src/pages/Dashboard.js
Backend API
- Booking API client
src/api.js - Express app
backend/src/app.js - Auth routes
backend/src/routes/auth.js - Booking routes
backend/src/routes/bookings.js - Flight routes
backend/src/routes/flights.js - PostgreSQL access
backend/src/db.js - Backend flight data
backend/src/data/flights.js - API service aliases
src/services/api.js
Other components
- Traveler
Connections 34
- Traveler → App and routing: uses
- App and routing → Search form: renders
src/App.js - Search form → Flight results: submits search
- Flight results → Flight inventory: filters inventory
src/pages/FlightResults.js - Flight results → Flight details: selects flight
- Flight details → Passenger details: continues booking
- Passenger details → Seat selection: assigns seats
src/pages/PassengerDetails.js - Passenger details → Review and payment: continues booking
- Review and payment → Booking API client: posts booking
src/pages/ReviewBooking.js - Review and payment → Booking confirmation: confirms booking
- Booking confirmation → My trips: persists booking
- My trips → Manage booking: manages booking
- App and routing → Explore destinations: routes to
src/App.js - App and routing → Destination details: routes to
src/App.js - Explore destinations → Travel datasets: uses destinations
- Destination details → Travel datasets: uses destination data
- App and routing → AI trip planner: routes to
src/App.js - AI trip planner → Travel datasets: uses travel data
src/pages/AiTripPlanner.js - App and routing → Hotels: routes to
src/App.js - App and routing → Flight status: routes to
src/App.js - App and routing → Price alerts: routes to
src/App.js - App and routing → Login and registration: routes to
src/App.js - App and routing → Profile: routes to
src/App.js - App and routing → Dashboard: routes to
src/App.js - Profile → Loyalty service: reads summary
src/pages/Profile.js - Dashboard → Loyalty service: uses loyalty
src/pages/Dashboard.js - Booking API client → Express app: calls API
src/api.js - Express app → Auth routes: mounts routes
backend/src/app.js - Express app → Booking routes: mounts routes
backend/src/app.js - Express app → Flight routes: mounts routes
backend/src/app.js - Auth routes → PostgreSQL access: queries users
backend/src/routes/auth.js - Booking routes → PostgreSQL access: uses database
backend/src/routes/bookings.js - Flight routes → Backend flight data: reads inventory
backend/src/routes/flights.js - API service aliases → Booking API client: re-exports client
src/services/api.js