How samikannup53/flytix-frontend works
FlyTix is a React flight-booking frontend for searching and comparing flights, then reserving and paying for a selected itinerary. The main journey runs from shared search controls through flight results and validation to booking, payment, and confirmation; authenticated users can also manage bookings, profiles, and saved travellers. Authentication and airport lookup call the backend directly, while the README documents Razorpay payments and booking alerts. Some page implementations were not sampled, so links for those capabilities are documented rather than inferred from unseen calls.
Main entry points: UserRoutes.jsx User routes · Flights.jsx Flight search results · Login.jsx Login and register · Payment.jsx Payment
Components 19
App and access
- React app
src/App.jsx - User routes
src/routes/UserRoutes.jsx - Private access
src/routes/PrivateRoutes.jsx
Flight discovery
- Landing page
src/modules/user/pages/landingPage/Landing.jsx - Shared search bar
src/modules/user/components/FlightSearchBarShared.jsx - Search logic
src/shared/hooks/useFlightSearchLogic.js - Airport lookup
src/modules/user/services/airportService.js - Flight search results
src/modules/user/pages/flightPage/Flights.jsx - Results and comparison
src/modules/user/pages/flightPage/sections/FlightResults.jsx
Reservation journey
- Booking details
src/modules/user/pages/bookingPage/Booking.jsx - Payment
src/modules/user/pages/paymentPage/Payment.jsx - Booking confirmation
src/modules/user/pages/confirmPage/BookingConfirm.jsx
Identity and account
- Auth context
src/shared/contexts/AuthContext.jsx - Login and register
src/modules/user/pages/authPages/Login.jsx - Profile and travellers
src/modules/user/pages/profilePage/Profile.jsx - Booking history
src/modules/user/pages/bookingsDashboard/MyBookings.jsx
Other components
- Traveller
- FlyTix API
- Razorpay
Connections 29
- Traveller → React app: uses
- React app → User routes: renders
src/App.jsx - User routes → Landing page: routes to
src/routes/UserRoutes.jsx - User routes → Login and register: routes to
src/routes/UserRoutes.jsx - User routes → Flight search results: routes to
src/routes/UserRoutes.jsx - User routes → Private access: guards
src/routes/UserRoutes.jsx - Private access → Auth context: checks
src/routes/PrivateRoutes.jsx - User routes → Booking details: routes to
src/routes/UserRoutes.jsx - User routes → Payment: routes to
src/routes/UserRoutes.jsx - User routes → Booking confirmation: routes to
src/routes/UserRoutes.jsx - User routes → Booking history: routes to
src/routes/UserRoutes.jsx - User routes → Profile and travellers: routes to
src/routes/UserRoutes.jsx - Landing page → Shared search bar: uses
- Flight search results → Shared search bar: renders
src/modules/user/pages/flightPage/Flights.jsx - Shared search bar → Search logic: uses
src/modules/user/components/FlightSearchBarShared.jsx - Search logic → Airport lookup: fetches airports
src/shared/hooks/useFlightSearchLogic.js - Flight search results → FlyTix API: searches and validates
src/modules/user/pages/flightPage/Flights.jsx - Flight search results → Results and comparison: renders
src/modules/user/pages/flightPage/Flights.jsx - Results and comparison → Booking details: starts booking
- Booking details → FlyTix API: loads flight and initiates
src/modules/user/pages/bookingPage/Booking.jsx - Login and register → Auth context: refreshes user
- Login and register → FlyTix API: registers
- Auth context → FlyTix API: authenticates
src/shared/contexts/AuthContext.jsx - Payment → Razorpay: processes payment
README.md - Payment → Booking confirmation: confirms booking
README.md - Traveller → Flight search results: searches and compares
README.md - Traveller → Login and register: registers or logs in
README.md - Traveller → Booking history: reviews bookings
README.md - Traveller → Profile and travellers: manages account