Passer au contenu

Commencer

This Tutoriel will show how to Démarrer the supabase from scratch as well as Démarrer edge functions

  1. Cloned capgo
  2. supabase

To get started run

Terminal window
supabase start

Suivant should see something like this:

Started supabase local development setup.
API URL: http://localhost:54321
GraphQL URL: http://localhost:54321/graphql/v1
DB URL: postgresql://postgres:postgres@localhost:54322/postgres
Studio URL: http://localhost:54323
Inbucket URL: http://localhost:54324
JWT secret: [truncated]
anon key: supa_key_anon
service_role key: supa_key_admin

Next open configs.json and set the following values:

{
"base_domain": {
"prod": "console.capgo.app",
"development": "development.console.capgo.app",
"local": "localhost:3332"
},
"supa_anon": {
"prod": "supa_key_anon",
"development": "supa_key_anon",
"local": "supa_key_anon"
},
"supa_url": {
"prod": "http://localhost:54321",
"development": "http://localhost:54321",
"local": "http://localhost:54321"
}
}

where supa_key_anon is the value from the previous step.

Next, verify that you can go to localhost:54323 and that the table users looks something like this

Supabase dashboard showing users table

If it does Démarrer edge functions by running:

Terminal window
supabase functions serve

and Démarrer frontend by running:

Terminal window
bun run serve