How hotel-de-l-avenue/hda-frontend works
HDA Platform is a multi-module hospitality operations application: authenticated staff enter through a shared shell and navigate to hotel, restaurant, bar, casino, finance, client, and administration areas. The main product workflow is selecting an operational module, performing its domain work, and viewing records or reports. The tree documents additional capabilities such as reservations, housekeeping, maintenance, minibar, stock, and casino cash/identity operations. Source excerpts are partial, so only route wiring and the sampled client-hook and authentication calls are shown as explicit relationships.
Main entry points: MainLayout.tsx Main layout · App.tsx App routing · ProtectedRoute.tsx Access control · api.ts HTTP client
Components 21
Application shell
- App routing
src/App.tsx - Access control
src/components/ProtectedRoute.tsx - Main layout
src/components/MainLayout.tsx
Hospitality operations
- Hotel operations
src/pages/HotelPage.tsx - Lodging operations
src/pages/HebergementPage.tsx
Venue operations
- Restaurant
src/pages/RestaurantPage.tsx - Bar service
src/pages/BarPage.tsx - Alcohol stock
src/pages/AlcoholPage.tsx - Casino operations
src/pages/CasinoPage.tsx
Business administration
- Finance management
src/pages/FinancesPage.tsx - Client management
src/pages/ClientsPage.tsx - Dashboard
src/pages/Dashboard.tsx - People operations
src/pages/RHPage.tsx - User administration
src/pages/UtilisateursPage.tsx - Settings and profile
src/pages/SettingsPage.tsx
Shared services
- Client data hook
src/hooks/useClients.ts - Client service
src/services/client.service.ts - Authentication service
src/services/authService.ts - HTTP client
src/lib/api.ts
Other components
- Staff user
- Application backend
Connections 17
- Staff user → App routing: uses
- App routing → Access control: routes through
- Access control → Main layout: renders protected
- Main layout → Hotel operations: routes to
- Main layout → Restaurant: routes to
- Main layout → Bar service: routes to
- Main layout → Alcohol stock: routes to
- Main layout → Casino operations: routes to
- Main layout → Finance management: routes to
- Main layout → Client management: routes to
- Main layout → Dashboard: routes to
- Main layout → People operations: routes to
- Main layout → User administration: routes to
- Main layout → Settings and profile: routes to
- Client data hook → Client service: calls
- Authentication service → HTTP client: sends requests
- HTTP client → Application backend: exchanges data