Empezando
Was dieses Tutorial behandelt?
Dieses Tutorial zeigt, wie man Supabase von Grund auf startet und Edge-Funktionen einrichtet.
Anforderungen
Erste Schritte
Zum Starten führen Sie aus:
supabase start
Als nächstes sollten Sie etwa 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_anonservice_role key: supa_key_admin
Öffnen Sie als nächstes configsjson
und setzen Sie die folgenden Werte:
{ "base_domain": { "prod": "webcapgoapp", "development": "developmentwebcapgoapp", "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" }}
wobei supa_key_anon
der Wert aus dem vorherigen Schritt ist
Überprüfen Sie als nächstes, ob Sie localhost:54323 aufrufen können und dass die Tabelle users
etwa so aussieht
Wenn ja, starten Sie die Edge-Funktionen mit:
supabase functions serve
und starten Sie das Frontend mit:
bun run serve