How ledinhdat041203/hotelmanager-frontend works
Project type and purpose
• This is a single‑page application (SPA) built with Create React App.
• Its purpose appears to be a room‑booking management UI with pages for login, booking, room management, and booking details, communicating with a backend via RESTful API.
File structure
• Top‑level “public” holds static HTML and manifest; “src” holds all React code.
• “src/pages” implements screens (HomePage, LoginPage, BookingPage, BookingDetailPage, RoomManagementPage).
• “src/components” contains reusable UI pieces (Header, ProtectedRoute, modals, marginer, accountBox).
• “src/routes” defines client‑side routing.
• “src/api” and “src/services” encapsulate HTTP calls and business logic for auth and room‑type.
• “src/store” (UserContext) and “src/components/accountBox/accountContext” manage user and account state.
• “src/assets” holds images; “src/styles” contains CSS/JS style modules.
• Configuration files like package.json/.env indicate this is purely a front‑end which depends on external API endpoints defined in src/api/config.js.
README
• Confirms use of Create React App.