In this part of the documentation, we are going to show you how to integrate a Database into the SaaSBold boilerplate.

For storing authentication and other users' data we used the PostgreSQL database.

To integrate the Database all you have to do is generate the Database URL from your database provider, and then update this .env variable:


Migrate the Schema

Now run this command to create the tables on your Database.

npx prisma db push

After that run this command

npx prisma generate

This is it, the Database integration is done. Another thing to remember is every time you update the Prisma Schema you'll have to run the prisma generate command.

Last updated