Step 1 of 4
Set Up Your Database
Set up your database and backend so your store can save products, orders, and customers.
You'll need a free Supabase account and your ShipCommerce project files · Estimated time: 10–15 min
1. Create a Supabase Project
- Go to supabase.com/dashboard and sign up (or log in)
- Click the green New Project button
- Fill in the details:
- Name: Choose any name (e.g. "my-store")
- Database Password: Click "Generate a password" and save it somewhere safe
- Region: Pick the one closest to your customers
- Click Create new project and wait about 2 minutes for it to finish
2. Copy Your Keys
You need 3 values from your Supabase project. Here's exactly where to find each one:
Project URL
Open your project. The URL is shown right below the project name on the Project Overview page.
| Project URL | NEXT_PUBLIC_SUPABASE_URL |
API Keys
- In the left menu, click Project Settings (the gear icon at the bottom)
- Click API Keys
- Scroll down to the section called "Legacy anon, service_role API keys"
- Click the copy icon next to each key and save them:
| Key name | Save it as |
|---|---|
| anon public | NEXT_PUBLIC_SUPABASE_ANON_KEY |
| service_role (secret) | SUPABASE_SERVICE_ROLE_KEY |
Note: If you also see a "Publishable and secret API keys" section — you can ignore it. The Legacy keys work the same way.
When you're done, your values should look something like this:
NEXT_PUBLIC_SUPABASE_URL=https://abcdefghijk.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...These are example values — use your own keys from Supabase, not these.
3. Create the Database Tables
This creates all the tables your store needs (products, orders, customers, etc.).
- In the left menu, click SQL Editor
- Open the file
supabase-setup.sqlfrom your ShipCommerce project folder - Copy everything from that file
- Paste it into the SQL Editor
- Click the green Run button
- Wait for it to finish — you should see "Success"
4. Set Up File Storage
This lets you upload product images from the admin panel.
- Still in the SQL Editor
- Open the file
setup-storage.sqlfrom your project - Copy everything, paste it, and click Run
5. Set Up Authentication
- In the left menu, click Authentication
- Click URL Configuration in the submenu
- Set Site URL to your store domain (e.g.
https://yourstore.com) - Under Redirect URLs, click Add URL and add these two:
https://yourstore.com/ https://yourstore.com/**
Tip: If you don't have a domain yet, skip this step. You can update these URLs later after deploying on Vercel.
Checklist
- ☐Supabase project created
- ☐3 API keys copied and saved
- ☐
supabase-setup.sql— ran successfully - ☐
setup-storage.sql— ran successfully - ☐Authentication URLs configured
Was this step clear?