How lohithgrandhi1510/safar-train-search works
This is a small browser-based train-booking prototype. The visible workflow covers station lookup on the home page, then seat/class selection and a booking summary; the seat script reads train and route details from browser storage. A separate login page provides a two-step form, but the sampled code does not show authentication or how users reach the booking page. The graph reflects only relationships visible in the sampled scripts; the train data file and page wiring were not inspected.
Main entry points: Home page/script.js Station lookup UI · seat.js Seat selection · stations.json Station list · login page/script.js Login form
Components 6
Station search
- Station lookup UI
trains-test/Home page/script.js - Station list
trains-test/Home page/stations.json
Seat booking
- Seat selection
trains-test/seat selection/seat.js - Browser storage
Login interface
- Login form
trains-test/login page/script.js
Other components
- Traveler
Connections 5
- Traveler → Station lookup UI: searches stations
trains-test/Home page/script.js - Station lookup UI → Station list: loads list
trains-test/Home page/script.js - Traveler → Seat selection: selects seats
trains-test/seat selection/seat.js - Seat selection → Browser storage: reads train details
trains-test/seat selection/seat.js - Traveler → Login form: enters credentials
trains-test/login page/script.js