Primeros pasos
¿Qué cubrirá este tutorial?
Este tutorial mostrará cómo iniciar supabase desde cero así como iniciar las funciones edge
Requisitos
Empezando
Para comenzar, ejecuta
supabase start
A continuación deberías ver algo como esto:
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
Luego abre configsjson
y establece los siguientes valores:
{ "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" }}
donde supa_key_anon
es el valor del paso anterior
A continuación, verifica que puedes acceder a localhost:54323 y que la tabla users
se vea algo así
Si es así, inicia las funciones edge ejecutando:
supabase functions serve
e inicia el frontend ejecutando:
bun run serve