Rebranding GymLog → openGym. Ein-Befehl-Self-Hosting via Docker Compose: web (nginx serviert App + Proxy /api → api, ein Origin für Passkeys), api (Node/WebAuthn), media-Service lädt Übungs-GIFs beim ersten Start automatisch. Passkey-Domain über .env konfigurierbar (RP_ID/ORIGIN/WEB_PORT/RP_NAME), Secure-Cookie nur bei HTTPS (http://localhost funktioniert). MIT-Lizenz, README fürs Self-Hosting, docs/SELF_HOSTING.md, CONTRIBUTING.md. Standalone-Stack Ende-zu-Ende getestet (Passkey-Register/-Login, Daten-Sync, User-Isolation über den Proxy auf http://localhost).
14 lines
584 B
Bash
Executable File
14 lines
584 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Manually download the exercise images (JPG) and animations (GIF).
|
|
# You normally DON'T need this — `docker compose up` fetches them automatically.
|
|
# Use it only if you run the app without Docker. Source: hasaneyldrm/exercises-dataset (CC).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
tmp="$(mktemp -d)"
|
|
trap 'rm -rf "$tmp"' EXIT
|
|
git clone --depth 1 https://github.com/hasaneyldrm/exercises-dataset "$tmp"
|
|
mkdir -p app/img app/gif
|
|
cp "$tmp"/images/*.jpg app/img/
|
|
cp "$tmp"/videos/*.gif app/gif/
|
|
echo "✓ $(ls app/img | wc -l) images, $(ls app/gif | wc -l) GIFs"
|