Self-hosted fitness tracker. Log workouts, track nutrition, and monitor progress. Docker deployment, mobile-friendly.
# Server
PORT=3000
ENV=development
# Database (SQLite default — no changes needed for local dev)
DB_TYPE=sqlite
DB_PATH=./data/lyftr.db
# PostgreSQL (only used if DB_TYPE=postgres)
# DB_HOST=localhost
# DB_PORT=5432
# DB_NAME=lyftr
# DB_USER=postgres
# DB_PASSWORD=
# Auth
JWT_SECRET=change-me-in-production-min-32-chars!!
JWT_EXPIRY=3600
# open | first-user | closed
REGISTRATION=open
# Demo account + sample data. Defaults on when ENV=development, off otherwise.
# DEMO_MODE=true
# CORS — comma-separated allow-list of client origins permitted to call the API.
# Use * to allow any origin (the API is Bearer-token based, so no cookies are at risk).
CORS_ORIGIN=http://localhost:5173
# ExerciseDB (RapidAPI)
# Sign up free at https://rapidapi.com/justin-WFnsXH_t6/api/exercisedb
# Paste your key below — exercises are fetched once and stored locally.
# EXERCISEDB_KEY=your_rapidapi_key_here