Skip to content
/ trapi Public

kashsuks/trapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 29, 2026
a5580fb · · Apr 29, 2026

History

17 Commits
Apr 27, 2026
Apr 7, 2026
Apr 27, 2026
Apr 27, 2026
Apr 7, 2026
Apr 27, 2026
Apr 27, 2026
Apr 27, 2026
Apr 27, 2026
Apr 6, 2026
Apr 29, 2026
Apr 27, 2026

Repository files navigation

trapi

Track your fitness progress through and API

Bootstrap a new database

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.

Deploy to Vercel

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_URL
  • JWT_SECRET
  • RUST_LOG optional

Recommended deployment flow:

vercel

Before the first production deploy, bootstrap the target Postgres database with:

scripts/bootstrap_db.sh "$DATABASE_URL"

AI Usage

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)

About

Track your fitness progress through and API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published