Parcel EmpirePhase 6.2 Supabase Setup

Online backend setup

Connect accounts, cloud save and global land.

Your web host runs the game files. Supabase stores players, parcels, wallets, leaderboards and profiles online.

Step-by-step setup

Create Supabase project

Create a project, save the database password, and wait for provisioning to finish.

Paste public keys

Copy Project URL and anon public key into js/config.js.

Run the SQL schema

Open sql/supabase_schema.sql, copy all of it, and run it in SQL Editor.

Enable auth

Enable email auth and add your hosted domain to redirect URLs.

Test two accounts

Buy a parcel on one account, then confirm another account sees it as owned.

Config values detected

These values are read from your current js/config.js.

Project URLChecking…
Anon keyChecking…
SUPABASE_URL: "https://YOUR-PROJECT.supabase.co", SUPABASE_ANON_KEY: "YOUR_PUBLIC_ANON_KEY",

Safety rules

Public anon key only

Never put a service-role key in this frontend project. Keep real payouts disabled until the payout provider, age/region checks, fraud checks, tax/KYC process and legal terms are ready.