- Clone the repository: https://github.com/withbackdrop/boilerplate
- Create a
devbranch which you should always be pushing to - Set up your
.env.localfile
- You can duplicate
.env.local.examplefor that - Populate the environment variables
- Run
pnpm install - Run
pnpm run dev
- Create a new Supabase project
- Go to Project Settings -> API
- Grab the Project URL and paste it into
NEXT_PUBLIC_SUPABASE_URLin the env file - Grab the Project API Key anon public and paste it into
NEXT_PUBLIC_SUPABASE_ANON_KEY - Grab the service role secret and paste it into
SUPABASE_SERVICE_ROLE_SECRET - Run all the SQL statements in
DatabaseInit.sql
- For the confirmation email, change the url in Supabase to
{{ .RedirectTo }}?token_hash={{ .TokenHash }}&type=signup
- Create a new project
- Add your git repo
- Add your environment variables
- Make sure to set NODE_ENV to
production - Also make sure you deploy the
devbranch so the thegetRootUrl()function works correctly
- Make sure to set NODE_ENV to
- Deploy!
./stripe login
./stripe listen --forward-to http://localhost:3000/api/payments/webhook
Push stuff https://chatgpt.com/c/68656c4b-90b0-8011-a7d8-6bc1fc334cde