Track your fitness progress through and API
To apply this repo's schema to a fresh Postgres database:
chmod +x scripts/bootstrap_db.sh
scripts/bootstrap_db.sh "postgres://user:pass@host:5432/dbname"The script applies every SQL file in migrations/ in filename order using psql.
This repo is configured to run on Vercel as a Rust Function entrypoint at api/index.rs.
The main site root serves interactive API docs, and the raw OpenAPI document is available at /openapi.json.
Required environment variables:
DATABASE_URLJWT_SECRETRUST_LOGoptional
Recommended deployment flow:
vercelBefore the first production deploy, bootstrap the target Postgres database with:
scripts/bootstrap_db.sh "$DATABASE_URL"GPT Codex was used in this project to deploy to vercel and debug rust issues with the creation of the API. I also used it to write the Docs for the API (by using Swagger API)