Opening your saved workspace. Public pages remain available below.

All playbooks/ Databases: Postgres and SupabaseProject starter kits
FRONTIERS PLAYBOOK / Intermediate

Databases: Postgres and Supabase

Where your data lives. Learn Postgres once and every product you build gets easier.

YOUR FIRST MOVE

Create a free Supabase project and make one table with five fake rows.

Your learning checklist

0 of 7 steps marked · opening your workspace

STEP 1

Learn SQL by doing

Every AI-built app ends up asking a database questions; you need to read the SQL the agent writes.

courseSQLBoltDetails +

Short interactive lessons from SELECT to joins; the fastest free start.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
coursePostgreSQL ExercisesDetails +

Practice questions on one dataset, from basic queries to recursive ones.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
courseCS50's Introduction to Databases with SQLDetails +

A seven-week Harvard course on table design, joins, views and indexes.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
STEP 2

Understand Postgres itself

Postgres is the database underneath Supabase and most hosted options, so learn its rules once.

docsPostgreSQL documentation: TutorialDetails +

The official hands-on intro to relational concepts and SQL.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
articleUse The Index, LukeDetails +

Free guide to indexes and query speed; read it when a page or report gets slow.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
STEP 3

Start a Supabase project

Supabase wraps Postgres with auth, an API and storage so you can build without running servers.

docsSupabase Database overviewDetails +

What you get with a project and how to access it.

Cost / access
free tier
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
docsUse Supabase with Next.jsDetails +

Step-by-step: read sample data from Supabase in a Next.js app.

Cost / access
free tier
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
docsSupabase CLI and local developmentDetails +

Run the stack on your own machine and link it to a hosted project so you can test before touching real data.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
STEP 4

Lock it down with auth and row level security

This is the step people skip and regret: without row level security anyone with your public key may read or change rows. Turn it on for every table.

docsSupabase: Row Level SecurityDetails +

Grants, per-operation policies and pgTAP tests, explained for Supabase.

Cost / access
free tier
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
docsPostgreSQL: Row Security PoliciesDetails +

The underlying Postgres feature, so you understand what Supabase is doing.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
docsSupabase AuthDetails +

Users and sign-in methods; policies refer to the signed-in user.

Cost / access
free tier
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
STEP 5

Change your schema safely with migrations

A migration is a saved, replayable schema change. It lets you recreate a database and avoids hand-editing production.

docsSupabase: Deploy database migrationsDetails +

Create migrations locally, seed data, deploy to a live project and fix sync errors.

Cost / access
free tier
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
docsDrizzle ORM: MigrationsDetails +

If you define your schema in TypeScript, this is the migration workflow for it.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
STEP 6

Set up backups and test a restore

A backup you have never restored is a guess. Note that Supabase says free-tier projects do not get automatic daily backups, so export your own.

docsSupabase: Database BackupsDetails +

Daily backups, Point-in-Time Recovery and the db dump command; free projects need their own exports.

Cost / access
free tier
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
docspg_dump (PostgreSQL docs)Details +

The standard tool for exporting a database to a file you can restore elsewhere.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
docsPostgreSQL: Backup and RestoreDetails +

The three backup approaches (SQL dump, file-system backup, continuous archiving) and when each fits.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
STEP 7

Run the pre-launch checks

Before real customer data goes in, walk the official checklists for security, performance and uptime.

docsSupabase Production ChecklistDetails +

Verify security, load and availability before public launch.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.
docsSecure configuration of Supabase productsDetails +

Hardening guides for Auth, Database, Storage and Realtime.

Cost / access
free · Service usage, hosting, or model access may be separate.
Setup
Follow the linked provider’s current instructions; check account and runtime requirements.

You have made a start when…

  • You can design a table and write a query that joins two.
  • Row level security is on for anything private.
  • You have a backup and know how to restore it.

Take this into your assistant.