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
-
Register a
Supabase
account. -
At Supabase's dashboard home page, click
Connect
button:
- In the dialog, click to ORMs -> Tool Prisma:
- Copy these into
.env
:
- Run database migration -> Done:
To sync database schema, run command
npm run update:postgres
ornpm run update:mongodb
after you finish updating the database schema in/prisma/schemas