Follow this guide to set up your database on Supabase, configure authentication, storage, and run your schema.
- Go to https://supabase.com and log in.
- Click "New Project".
- Fill in the project name, password, and database region.
- Click "Create new project".
After the project is created:
- Go to Project Settings → General.
- Your Project ID is shown in the URL (
https://project-id.supabase.co
). - Your Supabase URL is listed under Project Settings → API →
Project URL
. - Your anon/public key is also found here and is needed for connecting from clients.
- Go to Authentication → Providers.
- Under Email, turn on "Enable email signups".
- Optionally configure email templates under the Templates tab.
- Go to SQL Editor on the left sidebar.
- Click "New Query".
- Paste the schema from
schema.sql
file on this repo. - Click "Run" to execute.
- Go to Storage on the left sidebar.
- Click "Create a new bucket".
- Name it:
profile
. - Click "Create".
Row Level Security (RLS) is enabled by default to protect your data.
-
To disable RLS for a table during development:
- Go to Table Editor → select the table.
- Toggle off "Enable RLS".
⚠️ Warning: Disabling RLS means any client can read or write to your table if they know the API key. Only do this for local testing or while debugging. Don’t disable RLS in production unless you fully understand the risks.
You’ve now set up:
- 🔐 Email authentication
- 🧩 Database schema
- 📦 A profile bucket
- 🔍 Access to your project ID and URL
You're ready to connect your app and start building! 🚀