ZapStack

Database

Choose and setup a database

As we use Prisma as a database adapter so you can use any postgres database like Supabase or mongodb database like MongoDB Cloud for your application.

With Prisma, it would be easy for database schema updates and migrations.

Choose your database

  1. Register a Supabase account.

  2. At Supabase's dashboard home page, click Connect button:

  1. In the dialog, click to ORMs -> Tool Prisma:

  1. Copy these into .env:
DATABASE_URL=
DIRECT_URL=
  1. Run database migration -> Done:
npm run update:postgres

To sync database schema, run command npm run update:postgres or npm run update:mongodb after you finish updating the database schema in /prisma/schemas

On this page