Backend (FastAPI): - REST API: auth, plants, beds, plantings - CRUD layer with CRUDBase - Pydantic v2 schemas for all entities - Alembic migration: complete schema + all enums - Seed data: 28 global plants + 15 compatibilities Frontend (Vue 3 + PrimeVue): - Axios client with JWT interceptor + auto-refresh - Pinia stores: auth, beds, plants - Views: Login, Beds, BedDetail, PlantLibrary - Components: AppLayout, BedForm, PlantingForm, PlantForm Docker: - docker-compose.yml (production) - docker-compose.dev.yml (development with hot-reload) - Nginx config with SPA fallback + API proxy - Multi-stage frontend Dockerfile - .env.example, .gitignore Version: 1.0.0-alpha
11 lines
290 B
Python
11 lines
290 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.v1 import auth, beds, plantings, plants
|
|
|
|
api_router = APIRouter(prefix="/api/v1")
|
|
|
|
api_router.include_router(auth.router)
|
|
api_router.include_router(plants.router)
|
|
api_router.include_router(beds.router)
|
|
api_router.include_router(plantings.router)
|