Build with AI (for developers)

Your First Database with Supabase

Create a throwaway project and a first table in Supabase, and learn how to keep the data and keys safe.

  • Beginner
  • 4 lessons
  • 34 minutes

What you will be able to do

  • Create a free throwaway project
  • Make a first table and lock it with Row Level Security
  • Tell safe keys from secret keys
A code editor showing changes to review before approving
How each lesson works
  1. Read the problem and what you will do.
  2. Follow the short steps in your AI tool.
  3. Check the result before you use it.

What is inside

  1. 1

    Start a throwaway project

    7 min · Beginner

    The problem. Your app needs somewhere to keep data. A database sounds scary, and you do not want to break anything real.

    You will. Make a free Supabase project that you can delete later.

    Before: no place to store data. After: an empty practice project that holds nothing real.

  2. 2

    Make your first table

    9 min · Beginner

    The problem. You have a project but no table. The screen looks full of buttons, and you are not sure where to click.

    You will. Create a small table called movies in the Table Editor.

    Before: an empty project. After: a movies table with a name column and a description column.

  3. 3

    Lock the table with Row Level Security

    10 min · Beginner

    The problem. A table without rules can be read or changed by anyone who can reach it. That is how data gets exposed.

    You will. Understand Row Level Security and add a read-only rule for made-up data.

    Before: you do not know who can see your rows. After: you know that no policy means no data, and you add one clear read rule.

  4. 4

    Safe keys and secret keys

    8 min · Beginner

    The problem. Your app needs keys to talk to Supabase. Mix them up and a secret can end up where everyone can read it.

    You will. Tell the publishable key from the secret key and know where each belongs.

    Before: all keys look the same. After: you know which one may go in a browser and which one must stay on a server.