How shashwatmishra23/hotel-website works
This repository is a minimal Hotel Booking API starter, not yet a booking workflow: its implemented user-facing behavior is a basic health check and a database connectivity check. The database layer loads configuration and supplies SQLAlchemy sessions; the API uses one to issue a connectivity query. PostgreSQL is provided separately, and Alembic currently has only an empty baseline migration. The map reflects the sampled runtime files and documented migration behavior; no booking, hotel, or reservation features are present.
Main entry points: main.py FastAPI endpoints · compose.yaml PostgreSQL · database.py Session and engine · 0001_initial.py Empty baseline
Components 5
HTTP API
- FastAPI endpoints
app/main.py
Database Access
- Session and engine
app/database.py - PostgreSQL
compose.yaml
Schema Migrations
- Empty baseline
alembic/versions/0001_initial.py
Other components
- API caller
Connections 5
- API caller → FastAPI endpoints: requests health
README.md - FastAPI endpoints → Session and engine: gets session
app/main.py - FastAPI endpoints → PostgreSQL: checks connection
app/main.py - Session and engine → PostgreSQL: opens connection
app/database.py - Empty baseline → PostgreSQL: tracks revision
README.md