Skip to content

QuestPhone/supabase_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🛠️ Supabase DB Setup Guide

Follow this guide to set up your database on Supabase, configure authentication, storage, and run your schema.


1. 🔑 Create a Supabase Project

  1. Go to https://supabase.com and log in.
  2. Click "New Project".
  3. Fill in the project name, password, and database region.
  4. Click "Create new project".

2. 🔗 Get Your Project ID and Supabase URL

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 → APIProject URL.
  • Your anon/public key is also found here and is needed for connecting from clients.

3. ✉️ Enable Email Auth

  1. Go to Authentication → Providers.
  2. Under Email, turn on "Enable email signups".
  3. Optionally configure email templates under the Templates tab.

4. 🧱 Run Your Schema

  1. Go to SQL Editor on the left sidebar.
  2. Click "New Query".
  3. Paste the schema from schema.sql file on this repo.
  4. Click "Run" to execute.

5. 🖼️ Create a Storage Bucket

  1. Go to Storage on the left sidebar.
  2. Click "Create a new bucket".
  3. Name it: profile.
  4. Click "Create".

6. 🔒 Optional: Disable RLS for Debugging

Row Level Security (RLS) is enabled by default to protect your data.

  • To disable RLS for a table during development:

    1. Go to Table Editor → select the table.
    2. 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.


✅ Done!

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! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published