Open your existing Supabase project
In the Supabase dashboard, choose the project you want Moblox to use. You do not need to create another project.
Moblox uses Supabase Auth for grown-up accounts and a private Postgres table for each family’s creature shelf.
In the Supabase dashboard, choose the project you want Moblox to use. You do not need to create another project.
Open SQL Editor → New query. Copy supabase/schema.sql from this repository, paste it, then click Run. This creates a separate moblox_creatures table and row security rules for each signed-in account.
In Project Settings → API Keys, copy the Project URL and the publishable key (it starts with sb_publishable_). The legacy anon key also works. Never use a secret or service_role key in this website.
Copy .env.example to .env.local in the project root and replace the two example values. Restart npm run dev after saving.
In Authentication → Sign In / Providers, enable Email. Keep email confirmation enabled if you want verification. Add your local and deployed site URLs to Authentication → URL Configuration; include http://localhost:3000/auth/callback and your eventual Vercel callback URL.
Run npm install and npm run dev, open /login, create a grown-up account, then make a creature. Its shelf syncs to the moblox_creatures table for that signed-in account.