NestJS + Prisma Deep Dive
Vložit
- čas přidán 27. 07. 2024
- In this video, we look at using the popular ORM Prisma with NestJS to build CRUD APIs, execute migrations, use relations & more.
GitHub Repo: github.com/mguay22/nestjs-prisma
Prisma Docs: www.prisma.io/docs
Docker Desktop: docs.docker.com/get-docker/
MySQL Workbench: dev.mysql.com/downloads/workb...
Get my highly rated NestJS Microservices Course at a discount: michaelguay.dev/udemy/
Timestamps:
00:00:00 Introduction
00:01:11 Setup
00:07:19 Models
00:17:18 Migrations
00:20:40 CRUD
00:35:00 Relations - Věda a technologie
Get my highly rated NestJS Microservices Course at a discount: michaelguay.dev/udemy/
Excellent course! Im currently on the rabbitmq section
Could you add it as a section to the course?
Are you planning to add a section on sockets?
great video man! I needed a quick refresher and this was perfect
Thank you so much for making videos like this. Got prisma usage compared to TypeORM. Keep going on creating new videos
thank you bro, I love your channel and content , I'm new to nestjs and your videos help me so much! ❤❤❤
Michael, you are amaizing. I have finished your microservices udemy course and gave 5 stars to it. Guys, this guy is the best in terms of deep dive in any topics reletaed to Nestjs.
Great stuff, will buy both of your Udemy courses, ran into you randomly. Great pacing, excellent explaining absolutely love it.
Thank you, Michael, for your awesome work!I didn't work with SQL databases, and for me, this video is so useful! Thanks!
yeah
Lovely video. Thanks for your work!
great content, keep it up man!
how you would add additional validation with dtos from Prisma? or custom error messages?
Thanks for the awesome tutorial, appreciate it ☺
Great video. Really good 👍
Great video. I have already implemented several project with Prisma but this video allowed me to clarify some aspect. Thanks you. By any chance, are you going to make a video on how to deploy a project with Prism on AWS?
awesome video, I love your content
Nice explanation ❤
Your video was really good; I was able to implement it in my test repository, and it turned out great. Hey, I'd like to request if it's possible, could you create a video about handling application logs? For instance, setting up Winston in NestJS, saving logs to a physical file in a pod, and then forwarding those logs to something like Elasticsearch, and finally, reading the logs. I think it could be really cool.
Anyway, thank you very much for your videos; they are very helpful and teach me a lot. Thanks!
Really very nice tutorial about primsa and nestjs
YOU-ARE-AWESOME! 🎉
Great thanks for the video.
What about data validation ?
so awesome videos! thanks a lot. i'd like to know something about code convention. i really like making dash-case to code react project. for example app.component.tsx? before i watched your video about react and nestjs, it was like dash-case. usually do you use dash-case in react project?
Great complement on you course in Udemy 🙏🙏🙏
I am curious to knows your opinion on what's the most efficient way to implement nest.js+prisma+graphQL?
Maybe a future video to add on Udemy course?
how can we add class validator for prisma using the generated inputs?
hey man. i wanted to dive into nestjs but i seen some stuff that said you should know some angular before learning, so you think that’s true? i know react but i am not familiar with angular at all.
prisma is not compatible with the edge function. How do you tend to solve thiis?
can you do a version with graphql thnks
Best!!!
how to handle the prisma migrate when using a docker compose to launch the db, apps and the migration for the database?
you need to write script for this. whenever you want to migrate, you need to down your docker compose, and then up it and make migration. In this case you need 4 scripts. 1- db:dev:rm:"docker compose rm -s -v -f" 2- "db:dev:up":"docker compose up -d" 3-prisma:dev:deploy:"prisma deploy" 4:db:dev:restart:"npm run db:dev:rm && np run db:dev:up && sleep 1 && npm run prism:dev:deploy"
Unfortunately this doesnt work in a monorepo of nest.js
helpful
Are you streaming from the basement? :D
Oh yes!
How is this a "Deep Dive" while the migration is not being done safely! It's not recommended to migrate like this its not safe and it may cause data loose!
Its awesome, plz make a course with Nest and prisma