Files
exercise-cards-app/README.md

51 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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
```