NestJS & Prisma Tutorial
Vložit
- čas přidán 26. 07. 2024
- Learn how to build a CRUD API using NestJS with Prisma & MySQL!
Code: github.com/stuyy/nestjs-prism...
Support the Channel:
Become a Member: czcams.com/users/ansonthedevel...
Become a Patreon: / stuyy
Buy me a Coffee: ko-fi.com/anson
Donate on Streamlabs: streamlabs.com/ansondevacadem...
Donate on PayPal: paypal.me/ansonfoong
Connect with me:
Twitter: / ansonthedev
Discord: / discord
GitHub: github.com/stuyy
Twitch: / stuy
0:00 Introduction
1:00 Install & Setup Prisma
4:50 Create Models
9:14 Prisma Migrate
16:00 Inject Prisma Service
18:05 Create Users
28:11 Get Users
29:30 Get by ID
34:39 Update Users
45:11 Delete Users
47:42 One-To-One Relationships
56:00 Include Relations
1:08:28 One-To-Many
1:22:26 Include Post Relation
1:23:18 Many To Many
1:40:22 Query Many To Many Relations - Jak na to + styl
Amazing video, Now would be nice to see a whole project like: food delivery, or e-commerce website, gathering all the modules all the modules of nest.js, that would be 🔥✊🏿
Anson, amazing video! I think a guide on how to implement Prisma Exception Filter, so you don't need to throw them manually in each method would be super nice. It will be super great content and relevant for NestJS and best practices.
Well done! Very practical and easy to follow tutorial... :)
Very good coverage , thank you for the great work
You're welcome.
Thanks Anson.
Thank you 🎉
Anson your nest js videos are helping me a lot. Just a suggestion, that along with these videos, you can plan a full stack application using next js, nest js. Since many organizations use this stack in real world scenarios, so I belive such tutorials has large reach. I know you often do live streams, but it would be great if you can also plan such production ready applications.
Yes right... please do that
Anson, how do you create a swagger documentation with prisma? Do you also need to create entity classes?
Anson this was a phenomenal video. Guys, make sure to hit both the Like and the Subscribe buttons so you'll get more videos like this in the future. JB
Thank you so much for all the nestJs series
Could you please considering to build authentication system and Payment with nestJs and nextjs14 gcp Postgresql
Which vs code theme are you using?
hello anson . thank you for this video again . How to dockerize this with prisma and postgresql ? because you created a video but its for mysql . any links or articles would help as well . thank you !
It's really not any different, especially since it's also a SQL database.
Please nodejs microservice arch !!! ♥
Thank you very much..can we need repository system with Prisma or drizzle orm
Prisma doesnt support repository pattern but I'm sure there are ways you can set it up, but I wouldn't worry so much about it.
Hey, sorry to bother but the github repo is empty and this is why I am asking - does this use Prisma Client? Otherwise, thank you for your hard work as always!
I have pushed the code just now!
Please create a new series for how to create a discord bot dashboard with react and ts
Make it yourself.
just to confirm this can also work with Portgresql db right ?
Yep.
Thanks
21:49
Thank you 🎉
You're welcome!