MoveFast supports two database options: Supabase (PostgreSQL) and MongoDB. The database you use depends on the branch you cloned.
Supabase
Supabase provides a managed PostgreSQL database with built-in auth, storage, and real-time features.
1. Create a Project
- Sign up at supabase.com
- Click New Project
- Choose your organization and set a database password
- Wait for the project to be provisioned
2. Get Connection Strings
- In your project dashboard, click Connect button in the header
- Click ORMs
- Select Prisma from the dropdown
- Copy the
DATABASE_URLandDIRECT_URLvalues
3. Add Environment Variables
env
DATABASE_URL="postgresql://postgres.[project-ref]:[password]@aws-0-[region].pooler.supabase.com:6543/postgres?pgbouncer=true"
DIRECT_URL="postgresql://postgres.[project-ref]:[password]@aws-0-[region].pooler.supabase.com:5432/postgres"| Variable | Description |
|---|---|
DATABASE_URL | Pooled connection for queries (port 6543) |
DIRECT_URL | Direct connection for migrations (port 5432) |
4. Push Schema to Database
Run Prisma to create tables in your Supabase database:
bash
npx prisma db push --schema=./prisma/supabase/schema.prisma
npx prisma generate --schema=./prisma/supabase/schema.prismaMongoDB
MongoDB is a flexible NoSQL database. Great for rapid development and schema flexibility.
1. Create a Cluster
- Sign up at mongodb.com/cloud/atlas
- Create a new cluster (free tier available)
- Set up a database user with password
- Add your IP address to the access list (or allow all with
0.0.0.0/0)
2. Get Connection String
- Click Connect on your cluster
- Choose Connect your application
- Copy the connection string
3. Add Environment Variables
env
MONGODB_URI="mongodb+srv://username:password@cluster.mongodb.net/dbname"| Variable | Description |
|---|---|
MONGODB_URI | Your MongoDB Atlas connection string |
Note: Replace
username,password, anddbnamewith your actual values.

