Documentation๐Ÿ—„๏ธ Databaseโš™๏ธ Setup Database

Database

The SaaSify Kit uses Prisma as a ORM for database operations. This gives you the flexibility to use any database that is supported by Prisma. For the documentation purpose, we use MongoDB as the database.

Connect to Database

For the app to connect to the database, you need to set the DATABASE_URL environment variable.

DATABASE_URL=<DATABASE_URL>

Schemas

All the schemas are defined in the prisma/schema.prisma file. You can add your own schemas to this folder and use it in your applicationโ€™s core logic.

Prisma Studio

You can use the Prisma Studio to view and manage the database data. You can start the Prisma Studio by running the following command.

npx prisma studio

MIT 2024 ยฉ Nextra.