feat: exercise cards webapp with AI workflow and editor

This commit is contained in:
2026-03-08 07:36:37 +01:00
commit 805ae9c88e
11 changed files with 2494 additions and 0 deletions

50
README.md Normal file
View File

@@ -0,0 +1,50 @@
# exercise-cards-app
Webapp (zweiter Container), die auf die lokale Postgres-DB im ersten Container zugreift und Übungskarten formatiert rendert.
## Datenstruktur
In Tabelle `exercise_cards.output` (JSONB), inkl. Bildslots:
```json
{
"oberkapitel": false,
"titel": "Rückenwelle",
"Dauer": "13 Minuten",
"kurzbeschreibung": "...",
"Tip": "...",
"langtext": false,
"inhalt": "...",
"images": {
"main": null,
"detail": null
}
}
```
## Features
- Ausgabe im Kartenlayout (A4/Print-kompatibel)
- Klick auf Text öffnet Modal zum Editieren
- Klick auf Bild-Platzhalter öffnet Upload (main/detail)
- Persistenz in Postgres
## Start (lokal)
```bash
npm install
npm start
```
## Docker
```bash
docker build -t registry.aquantico.lan/exercise-cards-app:latest .
docker run --rm -p 8097:8097 \
-e DB_HOST=host.containers.internal \
-e DB_PORT=5433 \
-e DB_NAME=openclaw \
-e DB_USER=openclaw \
-e DB_PASSWORD='3P7m!dQ9vL2xR8kN' \
registry.aquantico.lan/exercise-cards-app:latest
```