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).
2.0 KiB
2.0 KiB
Contributing to openGym
Thanks for taking a look! openGym is intentionally small and dependency-light, and the goal is to keep it that way — easy to read, easy to self-host.
Project layout
app/ frontend — one static SPA (index.html, app.js, style.css, data.js). No build step.
api/ backend — server.js (Node, no framework), one dependency (@simplewebauthn/server).
web/ nginx config that serves app/ and proxies /api to the backend.
docs/ self-hosting guide.
Running for development
cp .env.example .env
docker compose up -d --build
# edit files in app/ (no build needed — just reload) or api/ (docker compose restart api)
Frontend changes are plain HTML/CSS/JS — edit and refresh. When you change app/*.js|css,
bump the ?v=N query in index.html and sw.js so clients and the service worker refetch.
Guidelines
- Keep it dependency-light. New npm packages in
api/are a hard sell; the frontend has none. - No build step for the frontend. Vanilla JS, please.
- Match the style. Small functions, clear names, comments only where the "why" isn't obvious.
- Don't commit the exercise media (
app/img,app/gif) ordata/— they're gitignored. - Test the flow you touched. There's a jsdom smoke test used during development; at minimum, click through the affected screens in a browser before opening a PR.
Good first issues
- Additional starter plans (upper/lower, full-body, 5×5…)
- More languages for the exercise instructions (the dataset ships several)
- Importers from other trackers (Strong, Hevy CSV → openGym JSON)
- Accessibility passes on the workout and chart screens
Reporting bugs
Open an issue with: what you did, what you expected, what happened, and your browser/OS. If it's
about login/passkeys, include your RP_ID/ORIGIN (not the data/ contents) — most login
issues are an origin mismatch.
By contributing you agree your work is licensed under the project's MIT License.