Created comprehensive redesign document addressing all identified issues: Problems addressed: 1. Primary goal too simplistic → Weight system (0-100%) 2. Single goal mode too simple → Multi-mode with weights 3. Missing current values → All goal types with data sources 4. Abstract goal types → Concrete, measurable goals 5. Blood pressure single value → Compound goals (systolic/diastolic) 6. No user guidance → Norms, examples, age-specific values New Concept: - Focus Areas: Weighted distribution (30% weight loss + 25% endurance + ...) - Goal Weights: Each goal has individual weight (not binary primary/not) - Concrete Goal Types: cooper_test, pushups_max, squat_1rm, etc. - Compound Goals: Support for multi-value targets (BP: 120/80) - Guidance System: Age/gender-specific norms and examples Schema Changes: - New table: focus_areas (replaces single goal_mode) - goals: Add goal_weight, target_value_secondary, current_value_secondary - goals: Remove is_primary (replaced by weight) UI/UX Redesign: - Slider interface for focus areas (must sum to 100%) - Goal editor with guidance and norms - Weight indicators on all goals - Special UI for compound goals Implementation Phases: 16-21h total - Phase 2: Backend Redesign (6-8h) - Phase 3: Frontend Redesign (8-10h) - Phase 4: Testing & Refinement (2-3h) Status: WAITING FOR USER FEEDBACK & APPROVAL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .gitea/workflows | ||
| backend | ||
| docs | ||
| frontend | ||
| nginx | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| docker-compose.dev-env.yml | ||
| docker-compose.dev.yml | ||
| docker-compose.yml | ||
| find-container.sh | ||
| README.md | ||
| SETUP.md | ||
| test-pipeline-api.sh | ||
| test-pipeline-backend.sh | ||
| test-unified-migration.sh | ||
BodyTrack
Körpervermessung & Körperfett Tracker – selbst gehostet, PWA-fähig.
Features
- Umfänge & Caliper-Messungen (4 Methoden) mit Verlauf
- Abgeleitete Werte: WHR, WHtR, FFMI, Magermasse
- Verlaufsdiagramme (Gewicht, KF%, Taille, …)
- KI-Interpretationen via Claude (Anthropic)
- Fortschrittsfotos mit Galerie
- PDF & CSV Export
- PWA – installierbar auf iPhone-Homescreen
- Alle Daten lokal auf deinem Server (SQLite)
Schnellstart
1. Voraussetzungen
# Docker & Docker Compose installieren (Ubuntu)
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
# Neu einloggen
2. Projekt klonen / kopieren
mkdir ~/bodytrack && cd ~/bodytrack
# Dateien hierher kopieren
3. API Key setzen
cp .env.example .env
nano .env
# ANTHROPIC_API_KEY=sk-ant-... eintragen
4. Starten
docker compose up -d
App läuft auf: http://DEINE-IP:3000
5. iPhone – Als App installieren
- Safari öffnen →
http://DEINE-IP:3000 - Teilen-Button (□↑) → „Zum Home-Bildschirm"
- BodyTrack erscheint als App-Icon
6. Von außen erreichbar (optional)
# Tailscale (einfachste Lösung – VPN zu deinem MiniPC)
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
# Dann: http://TAILSCALE-IP:3000
Updates
docker compose pull
docker compose up -d --build
Backup
# Datenbank & Fotos sichern
docker run --rm -v bodytrack-data:/data -v bodytrack-photos:/photos \
-v $(pwd):/backup alpine \
tar czf /backup/bodytrack_backup_$(date +%Y%m%d).tar.gz /data /photos
Konfiguration
| Variable | Beschreibung | Standard |
|---|---|---|
ANTHROPIC_API_KEY |
Claude API Key (für KI-Analyse) | – |
Ports
| Port | Dienst |
|---|---|
| 3000 | Frontend (Nginx) |
| 8000 | Backend API (intern) |