How zack-morpho/projet-hotel works
Project type and purpose
• This is a full-stack hotel management app combining an Angular SPA (frontend) and a FastAPI service (backend) enhanced with simple data/ML-based predictions (agency recommendation, availability forecasting, booking optimization).
• Users interact via a browser UI (http://localhost:4200) which talks over REST to a Python FastAPI server (http://127.0.0.1:8000).
File structure
• Top-level “PRJ” contains two siblings:
• intelligent-hotel-ui/ (Angular code, feature-based modules under src/app)
• intelligent-hotel-api/ (FastAPI project under app/)
• Backend substructure:
• app/main.py – FastAPI app entry point
• app/routes/*.py – three REST endpoints: agencies, availability, optimize
• app/utils/predict_utils.py – helper functions to load CSV/model and run predictions
• app/Data/final_merged_data.csv – source dataset
• app/intelligent-hotel-models/ – trained model artifacts (pickles, etc.)
• Frontend substructure:
• app.component.ts, app.routes.ts – root component and router setup
• Three feature components: predict-agency, predict-optimal, predict-total-available
• app.config.ts – centralizes API base URLs and settings
README for additional insights
• Confirms the stack: Angular + FastAPI
• No external database: CSV + ML models form the data layer
• Usage instructions reveal the REST interface and development workflow