Skip to content
faetschiPublic

About

Angular mobile workout tracking app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

KANTN — Workout App

Train with purpose. Stay consistent. See results.

KANTN is a modern workout platform designed to make fitness simple, structured, and motivating. Create personalized plans, build custom exercises, track your workout history, and turn every session into measurable progress.

Why KANTN

  • 🗓️ Personal workout plans: Build and follow plans tailored to your goals.
  • 🏋️ Custom exercise builder: Create and save exercises that fit your style.
  • ✅ Guided workout flow: Start sessions, follow sets, and stay on track.
  • 📊 Workout history & details: Review completed sessions and performance trends.
  • 👤 Personal profile: Keep your account and fitness journey organized in one place.

Quick Start (Dev)

  1. Install dependencies:
npm install
  1. Create a .env file in project root:
SUPABASE_URL=https://<project>.supabase.co
SUPABASE_ANON_KEY=<anon-key>
ENABLE_DEV_AUTH=false
APP_URL=http://localhost:4000
  1. Generate runtime env file:
node scripts/generate-env.js
  1. Start dev server:
npm run dev

App URL: http://localhost:4000

Test Locally (Production)

Build and run the production SSR server output:

npm run build:prod
npm run serve:ssr:app

Open: http://localhost:4000

Approve User & Admin Access

  • After a user logs in once (so a profile exists), approve their account:

    select * from set_user_role_by_email('faetschi.ai@gmail.com', true, false);
  • Promote a user to admin via SQL:

    select * from set_user_role_by_email('faetschi.ai@gmail.com', true, true);

Deploy to Vercel

Use these Vercel settings:

  • Build Command: npm run build:prod
  • Output Directory: dist/app/browser
  • Environment Variables:
    • SUPABASE_URL
    • SUPABASE_ANON_KEY

Then in Supabase Auth URL settings, add redirect URLs:

  • https://<your-vercel-app>.vercel.app/oauth/consent
  • http://localhost:4000/oauth/consent

Then push to main branch or use the manual production deploy command:

vercel --prod

Useful Commands

  • npm run lint — lint checks
  • npm test — unit tests

More Docs

  • BUGS.md — known issues
  • GO_LIVE_RUNBOOK.md — staging verification checklist and rollback steps

About

Angular mobile workout tracking app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages