How aaryankasaudhan91-dev/mini-project works
Grand Horizon is a multi-tenant hotel management system. Guests search date-aware room availability, reserve, check in through staff confirmation, order food and services during their stay, and settle a consolidated bill at checkout; staff also manage property inventory, reservations, catalog items, and housekeeping. The sampled frontend centralizes screens and actions in one SPA module, while the Express API owns backend workflows and PostgreSQL persistence. The README documents broader billing and lifecycle capabilities; unsampled implementation details are represented only where documented.
Main entry points: schema.sql Hotel Database · app.js SPA Screens · api.js HTTP API Client · server.js Account and Sessions
Components 16
Guest and Staff Client
- SPA Screens
frontend/js/app.js - Session Store
frontend/js/store.js - HTTP API Client
frontend/js/api.js - User Notices
frontend/js/notifications.js - Privacy Analytics
frontend/js/analytics.js
Hotel API
- Authentication
backend/auth.js - Domain Validation
backend/domain.js - Account and Sessions
backend/server.js - Room Search and Inventory
backend/server.js - Reservations and Check-in
backend/server.js - Food and Service Catalog
backend/server.js - In-Stay Orders
backend/server.js - Unified Checkout
backend/server.js - Housekeeping
backend/server.js
Persistent Data
- Hotel Database
backend/database/schema.sql
Other components
- Guest or Staff
Connections 17
- Guest or Staff → SPA Screens: uses
README.md - SPA Screens → Session Store: reads and writes
frontend/js/app.js - SPA Screens → HTTP API Client: calls
frontend/js/app.js - SPA Screens → User Notices: displays
frontend/js/app.js - SPA Screens → Privacy Analytics: tracks
frontend/js/app.js - HTTP API Client → Session Store: reads token
frontend/js/api.js - HTTP API Client → Account and Sessions: sends API requests
README.md - Account and Sessions → Authentication: uses
backend/server.js - Account and Sessions → Hotel Database: reads and writes
backend/server.js - Room Search and Inventory → Domain Validation: validates
backend/server.js - Room Search and Inventory → Hotel Database: queries inventory and availability
backend/server.js - Reservations and Check-in → Domain Validation: validates stays
backend/server.js - Reservations and Check-in → Hotel Database: locks and updates bookings
README.md - Food and Service Catalog → Hotel Database: reads and writes
backend/server.js - In-Stay Orders → Hotel Database: records requests and history
backend/server.js - Unified Checkout → Hotel Database: records checkout payment
README.md - Housekeeping → Hotel Database: updates room state
backend/server.js