Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hugocruzlfc/nextjs-prisma-workflows

Prism integration to Nextjs from scratch. Basic CRUD and structure.
https://github.com/hugocruzlfc/nextjs-prisma-workflows

nextjs14 prisma-orm tailwindcss typescript

Last synced: 17 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

- For more information visit the [Prisma web site](https://www.prisma.io/docs/)