- Create your own workout plan
- Add your own exercises
- Track your workouts
- Track your progress (BMI, weight etc.)
- Configure
.env
file- Supabase API Settings
- Copy
Project URL
toDATABASE_URL
andNEXT_PUBLIC_SUPABASE_URL
- Copy
Project API Keys: anon/public key
toNEXT_PUBLIC_SUPABASE_ANON_KEY
- Run
yarn install && npx prisma generate
- Run
./reset_db.sh
- Run
./dev.sh
(make sure have docker) - Disable email confirmation under Authentication > Providers > Email in Supabase UI
- run
create_user.sh
inscripts
folder
Debugging:
- make sure you are not ip banned on the supabase admin dashboard (if you failed to login)
- Visualize your prisma schema with this
https://www.prisma.io/docs/concepts/components/prisma-migrate/mental-model
prisma migrate dev
for development environment
prisma migrate deploy
for deployment (PRD) environment
- Edit the DBML documentation before editing the schema
- index.tsx is the 'container'
- wrap logic in hooks where possible
- kebab-case for non-react file names
- PascalCase for class files
- camelCase by default
- Landing Page
- Login Page
- Home Page
- Workout Plan
- Execute Workout Plan and track history/progress
- Run Plan/History