Go to file
Lars 7ede0e3fe8
All checks were successful
Deploy Development / deploy (push) Successful in 53s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 14s
feat: Phase 0c - migrate nutrition_metrics calculations to data_layer (16 functions)
- Migrated all 16 calculation functions from calculations/nutrition_metrics.py to data_layer/nutrition_metrics.py
- Functions: Energy balance (7d calculation, deficit/surplus classification)
- Functions: Protein adequacy (g/kg, days in target, 28d score)
- Functions: Macro consistency (score, intake volatility)
- Functions: Nutrition scoring (main score with focus weights, calorie/macro adherence helpers)
- Functions: Energy availability warning (with severity levels and recommendations)
- Functions: Data quality assessment
- Functions: Fiber/sugar averages (TODO stubs)
- Updated data_layer/__init__.py with 12 new exports
- Refactored placeholder_resolver.py to import nutrition_metrics from data_layer

Module 2/6 complete. Single Source of Truth for nutrition metrics established.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-28 19:57:13 +01:00
.gitea/workflows ci: fix workflows - prod deploys to bodytrack/, dev to bodytrack-dev/ 2026-03-17 13:11:53 +01:00
backend feat: Phase 0c - migrate nutrition_metrics calculations to data_layer (16 functions) 2026-03-28 19:57:13 +01:00
docs docs: Phase 0b Quick Test prompt (Option B) 2026-03-28 07:27:42 +01:00
frontend feat: show target_date in goal list next to target value 2026-03-28 14:50:34 +01:00
nginx feat: initial commit – Mitai Jinkendo v9a 2026-03-16 13:35:11 +01:00
.env.example small update 2026-03-18 09:07:08 +01:00
.gitignore fix: AdminUserRestrictionsPage - use exact TierLimitsPage input system 2026-03-20 11:34:48 +01:00
CLAUDE.md docs: cleanup debug logs + document goal system enhancements 2026-03-28 17:32:13 +01:00
docker-compose.dev-env.yml fix: add missing /app/data volume for SQLite migration 2026-03-18 12:11:37 +01:00
docker-compose.dev.yml feat: initial commit – Mitai Jinkendo v9a 2026-03-16 13:35:11 +01:00
docker-compose.yml docker-compose.yml aktualisiert 2026-03-19 08:28:30 +01:00
find-container.sh chore: rollback point before unified prompt system refactoring (Issue #28) 2026-03-25 10:42:18 +01:00
README.md feat: initial commit – Mitai Jinkendo v9a 2026-03-16 13:35:11 +01:00
SETUP.md feat: initial commit – Mitai Jinkendo v9a 2026-03-16 13:35:11 +01:00
test-pipeline-api.sh chore: add pipeline system test scripts (Issue #28) 2026-03-25 09:47:58 +01:00
test-pipeline-backend.sh fix: use postgres container for psql commands 2026-03-25 09:54:44 +01:00
test-unified-migration.sh fix: migration 020 SQL syntax - correlated subquery issue 2026-03-25 12:58:02 +01:00

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

  1. Safari öffnen → http://DEINE-IP:3000
  2. Teilen-Button (□↑) → „Zum Home-Bildschirm"
  3. 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)