Zum Inhalt springen

Anfangen

GitHub

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

  1. Kloniert capgo
  2. Supabase

Um loszulegen, führen Sie

Terminalfenster
supabase start

Als nächstes sollte man Folgendes sehen:

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

Als 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 supa_key_anon der Wert aus dem vorherigen Schritt ist.

Nächstens, überprüfen Sie, ob Sie auf localhost:54323 und dass die Tabelle users sieht so aus wie diese Tabelle

Supabase-Dashboard mit Benutzertabelle

Wenn es funktioniert, starten Sie Edge-Funktionen, indem Sie Folgendes ausführen:

Terminalfenster
supabase functions serve

und starte das Frontend, indem du folgendes ausführst:

Terminalfenster
bun run serve

Wenn du native Plugin-Arbeit verwendest Getting started um native Plugin-Arbeit zu planen, verbinde es mit Mit @capgo/capacitor-Updater für die native Fähigkeit in Mit @capgo/capacitor-Updater, Capgo Plugin-Ordner zur Produktionsablauf in Capgo Plugin-Ordner, Capacitor Plugins von Capgo zur Implementierungsdetail in Capacitor Plugins von Capgo, Hinzufügen oder Aktualisieren von Plugins zur Implementierungsdetail in Hinzufügen oder Aktualisieren von Plugins, und Ionische Unternehmens-Plugin-Alternativen zur Produktionsablauf in Ionische Unternehmens-Plugin-Alternativen.