hugocruzlfc / nextjs-prisma-workflows

Prism integration to Nextjs from scratch. Basic CRUD and structure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Understand this project

This project is a simple app to understand how to use Prisma ORM with Next.js. The app is a simple CRUD app that allows you to create, read, update and delete posts.

How to run this project

  • Clone the project
  • Run npm install to install all the dependencies
  • Run npm run dev to start the development server

How to setup Prisma

  • npx prisma init
  • npx prisma generate
  • npx prisma db push
  • npx prisma migrate dev

How to use Prisma

  • Create a new model in the schema.prisma file
  • Run npx prisma migrate dev to create a new migration

Docs

About

Prism integration to Nextjs from scratch. Basic CRUD and structure.


Languages

Language:TypeScript 96.5%Language:JavaScript 2.8%Language:CSS 0.7%