FastAPI backend for The Great Lawn Co. TV Delivery Dashboard.
- Create virtual environment:
cd backend
python -m venv venv
- Activate virtual environment:
# Windows
venv\Scripts\activate
# Linux/Mac
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Copy environment file:
- Run the server:
uvicorn app.main:app --reload
| Endpoint |
Method |
Description |
/ |
GET |
API information |
/health |
GET |
Health check |
/api/v1/schedule |
GET |
Get 10-day delivery schedule |
/docs |
GET |
OpenAPI documentation (Swagger UI) |
/redoc |
GET |
ReDoc documentation |
backend/
├── app/
│ ├── __init__.py
│ ├── main.py # FastAPI application
│ ├── config.py # Configuration management
│ ├── api/
│ │ └── v1/
│ │ └── routes/
│ │ ├── health.py # Health endpoint
│ │ └── schedule.py # Schedule endpoint
│ ├── models/
│ │ └── schedule.py # Pydantic models
│ └── services/
│ └── mock_data.py # Mock data generator
├── requirements.txt
├── .env.example
└── README.md
| Variable |
Description |
Default |
API_HOST |
Server host |
0.0.0.0 |
API_PORT |
Server port |
8000 |
DEBUG |
Debug mode |
true |
CORS_ORIGINS |
Allowed origins |
* |