Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLC Dashboard Backend

FastAPI backend for The Great Lawn Co. TV Delivery Dashboard.

Quick Start

  1. Create virtual environment:
cd backend
python -m venv venv
  1. Activate virtual environment:
# Windows
venv\Scripts\activate

# Linux/Mac
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Copy environment file:
cp .env.example .env
  1. Run the server:
uvicorn app.main:app --reload

API Endpoints

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

Project Structure

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

Environment Variables

Variable Description Default
API_HOST Server host 0.0.0.0
API_PORT Server port 8000
DEBUG Debug mode true
CORS_ORIGINS Allowed origins *

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages