Zum Inhalt springen

Getting started

GitHub

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

  1. Klont capgo
  2. Supabase

Um anzufangen, führen Sie

Terminalfenster
supabase start

Als nächstes sollte man etwas wie 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 setzen:

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

localhost:54323 gehen können. where is the value from the previous step. und das die Tabelle users sieht so aus

Supabase-Dashboard mit Benutzertabelle

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

Terminalfenster
supabase functions serve

und starten Sie die Frontend-Anwendung, indem Sie Folgendes ausführen:

Terminalfenster
bun run serve

Wenn Sie Supabase verwenden Einstieg um native Plugin-Arbeit zu planen, es mit Mit @capgo/capacitor-Updater für die native Fähigkeit in Mit @capgo/capacitor-Updater, Capgo Plugin-Ordner für den Produktworkflow in Capgo Plugin-Ordner, Capacitor Plugins von Capgo für die Implementierungsdetails in Capacitor Plugins von Capgo, Hinzufügen oder Aktualisieren von Plugins für die Implementierungsdetails in Hinzufügen oder Aktualisieren von Plugins, und Ionic Enterprise Plugin Alternativen für den Produktworkflow in Ionic Enterprise Plugin Alternativen.