Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/hugocruzlfc/nextjs-prisma-workflows
- Owner: hugocruzlfc
- Created: 2024-07-29T11:08:21.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T11:11:04.000Z (6 months ago)
- Last Synced: 2024-07-29T14:27:17.134Z (6 months ago)
- Topics: nextjs14, prisma-orm, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)