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
17 lines
509 B
Plaintext
17 lines
509 B
Plaintext
# Kopiere diese Datei nach .env und passe die Werte an.
|
|
|
|
# PostgreSQL
|
|
POSTGRES_USER=gartenmanager
|
|
POSTGRES_PASSWORD=sicheres_passwort_aendern
|
|
POSTGRES_DB=gartenmanager
|
|
|
|
# Backend
|
|
DATABASE_URL=postgresql+asyncpg://gartenmanager:sicheres_passwort_aendern@db:5432/gartenmanager
|
|
SECRET_KEY=bitte_aendern_langer_zufaelliger_string_min_32_zeichen
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
|
REFRESH_TOKEN_EXPIRE_DAYS=7
|
|
CORS_ORIGINS=["http://localhost", "http://localhost:80"]
|
|
|
|
# Frontend
|
|
VITE_API_BASE_URL=http://localhost:8000
|