Zum Inhalt springen

Anfangen

GitHub

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

  1. Klonen 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 setzen Sie die folgenden Werte:

{
"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 ob die Tabelle users wie folgt aussieht

Supabase-Dashboard mit Benutzertabelle

Wenn es funktioniert, starten Sie Edge-Funktionen, indem Sie

Terminalfenster
supabase functions serve

und starten Sie die Frontend-Anwendung, indem Sie

Terminalfenster
bun run serve

Wenn Sie Using verwenden Getting started um native Plugin-Arbeit zu planen, verbinden Sie es mit Mit @capgo/capacitor-Updater für die native Fähigkeit in Mit @capgo/capacitor-Updater, Capgo-Plugin-Verzeichnis für den Produktworkflow in Capgo-Plugin-Verzeichnis, Capacitor-Plugins von Capgo für die Implementierungsdetails in Capacitor Plugins durch Capgo, Plugins hinzufügen oder aktualisieren für die Implementierungsdetails in Plugins hinzufügen oder aktualisieren, und Alternativen zu Ionic Enterprise Plugins für das Produktworkflow in Alternativen zu Ionic Enterprise Plugins.