How kipronofelix74-afk/hotel-planner works
HOTEL-PLANNER is a browser-based hotel stay planner. Users browse and filter hotels, select one, enter stay details, estimate a total, and save a booking; they can also review and delete saved bookings. The main behavior is implemented together in index.js, including a separate estimate calculator. The excerpts show requests to a server, and package.json documents a json-server command, but the API_URL value in the excerpt does not establish a working connection to that server. The README provides no further capability detail.
Main entry points: index.js Hotel browser · db.json App database
Components 12
Hotel discovery
- Hotel browser
index.js - Filter and sort
index.js - Catalog request
index.js
Stay planning
- Stay planner
index.js - Stay estimate
index.js - Standalone estimator
index.js
Booking management
- Booking form
index.js - Booking requests
index.js - Booking list
index.js
Other components
- Traveler
- JSON Server
- App database
db.json
Connections 12
- Traveler → Hotel browser: browses hotels
index.js - Hotel browser → Filter and sort: filters and sorts
index.js - Hotel browser → Catalog request: loads catalog
index.js - Hotel browser → Stay planner: selects hotel
index.js - Stay planner → Stay estimate: calculates total
index.js - Traveler → Standalone estimator: enters stay details
index.js - Traveler → Booking form: submits or deletes
index.js - Booking form → Booking requests: saves or removes
index.js - Booking requests → Booking list: reloads bookings
index.js - Catalog request → JSON Server: requests catalog
- Booking requests → JSON Server: requests bookings
- JSON Server → App database: serves data