Skip to content

Instantly share code, notes, and snippets.

@raph941
Last active November 30, 2022 05:24
Show Gist options
  • Save raph941/4571d3c9ef1b06f6d087a45234f8ecaa to your computer and use it in GitHub Desktop.
Save raph941/4571d3c9ef1b06f6d087a45234f8ecaa to your computer and use it in GitHub Desktop.
Supabase Local development setup guide
  • Switch to node 14 nvm use 14
  • NPM install yarn install

Start docker services

# Add key/value `anonymous: anon` in all `plugins -> config` in `kong.yml`

cp docker/.env.example docker/.env

# Run this if you want to recreate all services
SUPABASE_PUBLIC_URL=http://localhost:8000 ENABLE_EMAIL_AUTOCONFIRM=true ENABLE_EMAIL_SIGNUP=true npm run docker:dev

# For next time, if you don't want to recreate all services, let's click `Start` button in Docker Manager UI

Create local credentials

After start docker services, we can create local credentials for development, in sample the credentials are email email1@example.com and password secret

curl --request POST \
  --url http://localhost:8000/auth/v1/signup \
  --header 'Accept: application/json' \
  --data '{ "email": "email1@example.com", "password": "secret" }'

Start studio

SUPABASE_PUBLIC_URL=http://localhost:8000 npm run dev:studio

Now you can use registered credentials above to login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment