Files
2026-01-14 13:11:07 +00:00
..
2026-01-14 13:11:07 +00:00
2026-01-14 13:11:07 +00:00
2026-01-12 19:03:50 +00:00
2026-01-13 19:44:02 +00:00
2026-01-14 13:11:07 +00:00
2026-01-14 13:11:07 +00:00
2026-01-14 13:11:07 +00:00
2026-01-12 19:03:50 +00:00
2026-01-13 19:44:02 +00:00
2026-01-14 13:11:07 +00:00
2026-01-12 19:03:50 +00:00
2026-01-12 19:03:50 +00:00
2026-01-12 19:03:50 +00:00
2026-01-14 13:11:07 +00:00

Klangkiste Dev-Playbook

Zweck

Dieses Playbook dokumentiert die "virtuelle Box"-Entwicklungsumgebung. Es ist eine vollstaendige, hardwarefreie Simulation, die komplett im Repo laeuft und Setup-, Playback- und API-Flows end-to-end testbar macht.

Die Doku liegt bewusst im Repo-weiten docs/-Ordner, damit Box- und GUI-Entwickler einen gemeinsamen Einstiegspunkt haben.

Voraussetzungen

  • Python 3
  • Node.js + npm
  • Aus dem Repo-Root ausfuehren

Schritt-fuer-Schritt

Quickstart (3-5 Minuten):

  1. Alles starten:
./dev.sh
  1. Setup-WebGUI der Box oeffnen:
http://127.0.0.1:9000/setup
  1. WLAN-Profil eintragen und speichern.
  2. Backend pruefen:
curl http://127.0.0.1:5001/api/boxes
  1. Frontend oeffnen und Box pairen:
http://127.0.0.1:5174
  1. Tags testen:
    • Tag auflegen
    • Medien zuordnen
    • Playback starten

Troubleshooting

  • Box startet nicht:
    • Pruefe Abhaengigkeiten und ob Ports 8000/9000 frei sind.
  • GUI erreicht API nicht:
    • Vite-Proxy: GUI ruft /api/... auf.
    • Backend laeuft auf http://127.0.0.1:5001.
    • Wenn Reverse-Proxy genutzt wird, /api auf das Backend routen.

Was ist Mock vs. real

  • Mock: WLAN, IP, Spotify, Audio, Hardware. Diese Backends sind logische Simulationen.
  • Real: Box-Prozess, Playback-State-Machine, API, CLI, Resume-Logik, Media-Traversal.
  • Dev-Workflow: docs/dev-workflow.md
  • Box-Lifecycle: docs/box-lifecycle.md
  • Setup-WebGUI: docs/setup-webgui.md
  • HTTP-API Vertrag: docs/api.md
  • GUI Control Panel: docs/gui-control-panel.md
  • Playback-Tests: docs/playback-testing.md
  • Offline-Szenarien: docs/offline-scenarios.md
  • Security & Storage: docs/security-storage.md
  • CLI-Referenz: docs/cli.md
  • Acceptance-Tests: docs/acceptance-tests.md
  • Debugging-Guide: docs/debugging.md
  • Virtual-Box-Notizen: docs/virtual-box.md
  • Legacy-Storage-Notizen: docs/storage.md