This is to run Supabase locally.
supabase start
Once all of the Supabase services are running, you'll see output containing your local Supabase credentials. It should look like this, with urls and keys that you'll use in the project:
Started supabase local development setup.
API URL: http://127.0.0.1:54321
GraphQL URL: http://127.0.0.1:54321/graphql/v1
DB URL: postgresql://postgres:postgres@127.0.0.1:54322/postgres
Studio URL: http://127.0.0.1:54323
Inbucket URL: http://127.0.0.1:54324
JWT secret: super-secret-jwt-token-with-at-least-32-characters-long
anon key: eyJhbGci.....
service_role key: eyJhbGci....
In your .env
file, set the following environment variables (from the output above):
DATABASE_URL
➡️DB URL
SUPABASE_ANON_PUBLIC
➡️anon key
SUPABASE_SERVICE_ROLE
➡️service_role key
SUPABASE_URL
➡️API URL
Used by Supabase SDK.