Important
You will need Docker and the Supabase CLI installed.
- Clone the repository:
git clone git@github.com:moaqz/supagym.git
- Install the dependencies:
pnpm i
- Start the supabase server:
supabase start
- Create an
.env
file with the following variables provided by the Supabase CLI.
DATABASE_URL=
PUBLIC_SUPABASE_ANON_KEY=
PUBLIC_SUPABASE_URL=
- Create an OAuth client using the callback URL as
${YOUR_PUBLIC_SUPABASE_URL}/auth/v1/callback
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
Note
You can choose either the GitHub or Google OAuth client (or both if desired). Only one OAuth client is required to run the app.