mitai-jinkendo/README.md
Lars Stommer 89b6c0b072
Some checks are pending
Deploy to Raspberry Pi / deploy (push) Waiting to run
Build Test / build-frontend (push) Waiting to run
Build Test / lint-backend (push) Waiting to run
feat: initial commit – Mitai Jinkendo v9a
2026-03-16 13:35:11 +01:00

82 lines
1.8 KiB
Markdown
Raw Permalink 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.

# 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
```bash
# Docker & Docker Compose installieren (Ubuntu)
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
# Neu einloggen
```
### 2. Projekt klonen / kopieren
```bash
mkdir ~/bodytrack && cd ~/bodytrack
# Dateien hierher kopieren
```
### 3. API Key setzen
```bash
cp .env.example .env
nano .env
# ANTHROPIC_API_KEY=sk-ant-... eintragen
```
### 4. Starten
```bash
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)
```bash
# 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
```bash
docker compose pull
docker compose up -d --build
```
## Backup
```bash
# 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) |