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

Nächste sollte 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

Nächste ö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 Die Werte aus dem vorherigen Schritt.

localhost:54323 und dass die Tabelle wie folgt aussieht users Supabase-Dashboard mit Benutzertabelle

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

__CAPGO_KEEP_0__

Terminalfenster
supabase functions serve

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

Terminalfenster
bun run serve

Getting started Um native Plugin-Arbeit zu planen, verbinde es mit Using @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-updater für die native Fähigkeit in Using @capgo/capacitor-updater Using @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 Plugins hinzufügen oder aktualisieren für die Implementierungsdetails in Plugins hinzufügen oder aktualisieren und Ionische Unternehmens-Plugin-Alternativen für den Produktworkflow in Ionische Unternehmens-Plugin-Alternativen.