How souravkumar-dev/aerovista works
Aerovista is a travel-booking web application for flights, hotels, and vacation packages, with account registration/sign-in and per-user bookings. The main workflow is: a traveler uses the browser interface to search travel options, selects an option, submits booking details, and later views or cancels bookings. The server also serves the site and handles authentication. Search and booking logic are in server.js; catalog.js supplies travel catalog data. Source excerpts are partial, so uncertain endpoint-to-storage details are not expanded.
Main entry points: server.js HTTP server and router · script.js Browser interactions · index.html Travel site · catalog.js Destination catalog
Components 16
Web experience
- Travel site
index.html - Browser interactions
script.js - HTTP server and router
server.js
Travel discovery
- Flight search
server.js - Hotel search
server.js - Package search
server.js - Destination catalog
catalog.js
Accounts
- Authentication
server.js - Password verification
server.js - Login attempt guard
server.js - User records
data/users.json - Session records
data/sessions.json
Booking and state
- Booking and account views
script.js - Booking operations
server.js - Booking records
data/bookings.json
Other components
- Traveler
Connections 19
- Traveler → Travel site: uses
- Travel site → Browser interactions: loads script
- Browser interactions → HTTP server and router: requests APIs
- HTTP server and router → Travel site: serves site
- HTTP server and router → Flight search: dispatches search
- HTTP server and router → Hotel search: dispatches search
- HTTP server and router → Package search: dispatches search
- Flight search → Destination catalog: reads catalog
- Hotel search → Destination catalog: reads catalog
- Package search → Destination catalog: reads catalog
- HTTP server and router → Authentication: dispatches auth
- Authentication → Password verification: checks credentials
- Authentication → Login attempt guard: tracks failures
- Authentication → User records: reads and writes
- Authentication → Session records: manages sessions
- Browser interactions → Booking and account views: opens booking views
- Booking and account views → HTTP server and router: requests booking actions
- HTTP server and router → Booking operations: dispatches booking
- Booking operations → Booking records: reads and writes