Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

5-11 Initialize Prisma and Seed Database

In this lesson we initialize Prisma and seed the database.

First, we generate a custom Prisma client that is based on our schema. Then we can deploy these changes to our Supabase database.

Next, we look at how to seed our database with default data. We’ll use the existing course data to make this process simple.

UPDATE, December 2023: The build script has been updated to run prisma generate before the build, because it’s not auto-generating like it should.

UPDATE, March 2023: Make sure to also install prisma as a dev dependency so that it’s installed during deploy. When it’s installed it should automatically generate your Prisma client. eg pnpm add -D prisma.