Skip to content

Darth-Knoppix/next-prisma-seed-example

Repository files navigation

Next Prisma Seed Example

An example of how to seed your DB when using Prisma and Next.js.

Read the short explanation on Benevolent Bytes

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Database

  • Setup the DB, cp .env.example .env and update values as you see fit. Tih project uses SQLite for ease of use.
  • Create the DB with yarn prisma db push, this will create a SQLite DB in the directory specified by the .env file.
  • Run yarn db:seed to seed the coffee data

Run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

About

An example of how to seed data with Prisma and Next.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published