Zum Inhalt springen

Einstieg

Dieses Tutorial zeigt, wie man Supabase von Grund auf startet sowie Edge-Funktionen startet

  1. Kloniert capgo
  2. supabase

Um loszulegen, führen Sie

Terminalfenster
supabase start

Nächstes sollte wie folgt aussehen:

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

Nächstes öffnen configs.json und die folgenden Werte einstellen:

{
"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"
}
}

wo ist der Wert aus dem vorherigen Schritt. supa_key_anon Danger

und dass die Tabelle wie folgt aussieht Supabase-Dashboard mit Benutzertabelle users Wenn es funktioniert, starten Sie Edge-Funktionen, indem Sie Folgendes ausführen:

__CAPGO_KEEP_0__

__CAPGO_KEEP_1__

Terminalfenster
supabase functions serve

und starte die Frontend-Anwendung, indem du folgendes ausführst:

Terminalfenster
bun run serve