Zum Inhalt springen

Einstieg

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ächste sollten Sie 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 Warnung

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 das Frontend, indem du folgendes ausführst:

Terminalfenster
bun run serve

Wenn du native Plugin-Arbeiten planst, verbinde es mit Mit @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-Updater für die native Fähigkeit in Mit @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-Updater, Using @capgo/capacitor-updater for the native capability in Using @capgo/capacitor-updater, Plugin-Verzeichnis von Capgo für den Produktworkflow in Plugin-Verzeichnis von Capgo 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 Ionic Enterprise-Plugin-Alternativen für den Produktworkflow in Ionic Enterprise-Plugin-Alternativen