Configuración inicial · Solo una vez
Paso 1 · Crear proyecto Supabase
Ve a supabase.com → "Start for free" → crea un proyecto.
Nombre: finsocios · Región: South America (São Paulo)
Paso 2 · Crear las tablas (copia y pega en SQL Editor)
En tu proyecto → SQL Editor → pega esto y ejecuta:
create table if not exists movimientos ( id bigserial primary key, fecha date not null, concepto text not null, categoria text not null, cuenta text not null, monto numeric not null, tipo text not null check (tipo in ('ingreso','gasto')), producto_id text, nota text, created_at timestamptz default now() ); create table if not exists productos ( id text primary key, nombre text not null, socios jsonb default '[]' ); create table if not exists socios ( id text primary key, nombre text not null, color text not null, porcentaje numeric default 0 ); create table if not exists cuentas ( id text primary key, nombre text not null, color text not null ); create table if not exists categorias ( id text primary key, nombre text not null, tipo text not null ); -- Habilitar acceso público (RLS off para uso personal) alter table movimientos disable row level security; alter table productos disable row level security; alter table socios disable row level security; alter table cuentas disable row level security; alter table categorias disable row level security;
Paso 3 · Obtener credenciales
En Supabase → Project SettingsAPI
Copia la Project URL y la anon public key
No se pudo conectar. Verifica la URL y la key.