Prisma & Next.js
Learn how to use Prisma with a Next.js application to persist data to a PostgreSQL database. I’ll also show you how to setup a cloud database using railway and deploy your app to vercel.
My prisma guide:
https://www.sammeechward.com/prisma-and-nextjs
Code:
https://www.sammeechward.com/prisma-and-nextjs-video
Env Vars:
https://www.prisma.io/docs/guides/database/troubleshooting-orm/help-articles/nextjs-prisma-client-dev-practices
https://nextjs.org/docs/basic-features/environment-variables
Join this channel to get access to perks:
https://www.youtube.com/channel/UC6aTLuI_j4-0wiDSzmaPctQ/join
Chapters:
0:00 Intro
2:44 Installing Prisma
3:35 Environment Variables
6:37 Connect to local Postgres
7:44 Setup schema/models
9:28 Run migration
10:25 Prisma Studio
11:32 Posting data
20:01 Create a single prisma client
22:36 Getting data
26:45 Serializable Data
30:28 Deploy to the cloud
37:20 Summary
🔗Moar Links
My Website: https://www.sammeechward.com
Instagram: https://www.instagram.com/meech_ward
Twitter: https://twitter.com/Meech_Ward
Github: https://github.com/orgs/Sam-Meech-Ward