2026-04-05 22:32:58 +02:00
|
|
|
|
# Session-Kontext
|
|
|
|
|
|
|
|
|
|
|
|
> Claude liest diese Datei zu Beginn jeder Session.
|
2026-04-05 23:24:21 +02:00
|
|
|
|
> Claude aktualisiert sie am Ende jeder Session.
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## Aktueller Stand
|
|
|
|
|
|
|
|
|
|
|
|
| Feld | Wert |
|
|
|
|
|
|
|---|---|
|
2026-04-06 07:46:37 +02:00
|
|
|
|
| **Version** | 0.3.0 |
|
2026-04-05 23:24:21 +02:00
|
|
|
|
| **Aktiver Branch** | feature/phase-1 |
|
2026-04-05 22:32:58 +02:00
|
|
|
|
| **Basis-Branch** | develop |
|
feat: Phase 1 complete – full working application
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
2026-04-06 07:45:00 +02:00
|
|
|
|
| **Zuletzt geändert** | 2026-04-06 |
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
feat: Phase 1 complete – full working application
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
2026-04-06 07:45:00 +02:00
|
|
|
|
## Phase 1 – Status: ABGESCHLOSSEN ✓
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
feat: Phase 1 complete – full working application
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
2026-04-06 07:45:00 +02:00
|
|
|
|
Alle Dateien implementiert und gepusht. System ist startbereit.
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
feat: Phase 1 complete – full working application
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
2026-04-06 07:45:00 +02:00
|
|
|
|
## Offene Arbeit – nächste Session
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
feat: Phase 1 complete – full working application
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
2026-04-06 07:45:00 +02:00
|
|
|
|
Phase 1 ist fertig. Nächste Schritte nach Rücksprache mit Nutzer:
|
|
|
|
|
|
|
|
|
|
|
|
1. **System testen** – `docker compose -f docker-compose.dev.yml up` ausführen und manuell prüfen
|
|
|
|
|
|
2. **Ersten Superadmin anlegen** – Es gibt noch kein UI dafür, muss per DB-Insert oder API-Skript erfolgen
|
|
|
|
|
|
3. **Phase 2 starten** – Testing & CI/CD (Gitea Actions, pytest, Vitest, Playwright)
|
|
|
|
|
|
|
|
|
|
|
|
## Hinweis: Superadmin erstellen
|
|
|
|
|
|
|
|
|
|
|
|
Noch kein UI vorhanden. Seed-Skript oder direkt per Python:
|
|
|
|
|
|
```bash
|
|
|
|
|
|
docker compose exec backend python3 -c "
|
|
|
|
|
|
import asyncio
|
|
|
|
|
|
from app.db.session import AsyncSessionLocal
|
|
|
|
|
|
from app.models.user import User
|
|
|
|
|
|
from app.core.security import get_password_hash
|
|
|
|
|
|
import uuid
|
|
|
|
|
|
|
|
|
|
|
|
async def create():
|
|
|
|
|
|
async with AsyncSessionLocal() as db:
|
|
|
|
|
|
user = User(id=uuid.uuid4(), email='admin@example.com',
|
|
|
|
|
|
hashed_password=get_password_hash('changeme'),
|
|
|
|
|
|
full_name='Superadmin', is_superadmin=True)
|
|
|
|
|
|
db.add(user)
|
|
|
|
|
|
await db.commit()
|
|
|
|
|
|
print('Superadmin erstellt.')
|
|
|
|
|
|
asyncio.run(create())
|
|
|
|
|
|
"
|
2026-04-05 23:25:04 +02:00
|
|
|
|
```
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
|
|
|
|
|
## Schnellreferenz
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
feat: Phase 1 complete – full working application
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
2026-04-06 07:45:00 +02:00
|
|
|
|
# Entwicklungsumgebung starten
|
|
|
|
|
|
docker compose -f docker-compose.dev.yml up
|
|
|
|
|
|
|
2026-04-05 22:32:58 +02:00
|
|
|
|
# Version bumpen
|
|
|
|
|
|
bash .claude/scripts/bump.sh patch "Was wurde geändert"
|
|
|
|
|
|
|
|
|
|
|
|
# Neuen Branch erstellen
|
|
|
|
|
|
bash .claude/scripts/new-feature.sh feature <name>
|
|
|
|
|
|
```
|