NestJS + Prisma Deep Dive

Поділитися
Вставка
  • Опубліковано 5 сер 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
  • Наука та технологія

КОМЕНТАРІ • 39

  • @mguay
    @mguay  9 місяців тому +6

    Get my highly rated NestJS Microservices Course at a discount: michaelguay.dev/udemy/

    • @JP12313
      @JP12313 9 місяців тому

      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?

  • @AliAliOxenFree
    @AliAliOxenFree 8 місяців тому +4

    great video man! I needed a quick refresher and this was perfect

  • @badrinath8958
    @badrinath8958 9 місяців тому +1

    Thank you so much for making videos like this. Got prisma usage compared to TypeORM. Keep going on creating new videos

  • @MightyKingKala
    @MightyKingKala 9 місяців тому +2

    thank you bro, I love your channel and content , I'm new to nestjs and your videos help me so much! ❤❤❤

  • @am0nr2youtube28
    @am0nr2youtube28 8 місяців тому +1

    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.

  • @bozidarbralic1937
    @bozidarbralic1937 5 місяців тому

    Great stuff, will buy both of your Udemy courses, ran into you randomly. Great pacing, excellent explaining absolutely love it.

  • @nolw.7805
    @nolw.7805 9 місяців тому

    Thank you, Michael, for your awesome work!I didn't work with SQL databases, and for me, this video is so useful! Thanks!

  • @zzxdimon
    @zzxdimon 2 місяці тому

    Lovely video. Thanks for your work!

  • @ThinhLe-pg8di
    @ThinhLe-pg8di 9 місяців тому

    great content, keep it up man!

  • @BilalDjaghout-b3f
    @BilalDjaghout-b3f 26 днів тому

    awesome video, I love your content

  • @indrajeetnikam5301
    @indrajeetnikam5301 4 місяці тому

    Thanks for the awesome tutorial, appreciate it ☺

  • @kareemlateefyomi8690
    @kareemlateefyomi8690 8 місяців тому

    Great video. Really good 👍

  • @nazartkach3866
    @nazartkach3866 4 місяці тому +3

    how you would add additional validation with dtos from Prisma? or custom error messages?

  • @testaccount9420
    @testaccount9420 2 місяці тому

    Nice explanation ❤

  • @104antony
    @104antony 9 місяців тому

    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?

  • @neerajsinghtangariya2587
    @neerajsinghtangariya2587 6 місяців тому

    Really very nice tutorial about primsa and nestjs

  • @samulivalimaki
    @samulivalimaki 7 місяців тому

    YOU-ARE-AWESOME! 🎉

  • @cafesmallhouse1751
    @cafesmallhouse1751 9 місяців тому

    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?

  • @luizadamchuk4558
    @luizadamchuk4558 9 місяців тому

    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!

  • @eghobamienuyioghosavincent3255

    Thank you

  • @mdsajaldeowan1054
    @mdsajaldeowan1054 5 місяців тому +1

    Great thanks for the video.
    What about data validation ?

  • @UCmdrhccjVM95UidL5idZw2Q
    @UCmdrhccjVM95UidL5idZw2Q 17 днів тому

    Best!!!

  • @williamjayinclino7271
    @williamjayinclino7271 6 місяців тому

    how can we add class validator for prisma using the generated inputs?

  • @moestaxx286
    @moestaxx286 8 місяців тому

    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.

  • @blender_wiki
    @blender_wiki 9 місяців тому

    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?

  • @kirrttiraj
    @kirrttiraj 9 місяців тому

    prisma is not compatible with the edge function. How do you tend to solve thiis?

  • @AayushGupta-ec2id
    @AayushGupta-ec2id Місяць тому

    helpful

  • @anesuchidziwo
    @anesuchidziwo 9 місяців тому +1

    how to handle the prisma migrate when using a docker compose to launch the db, apps and the migration for the database?

    • @moeinsamani1467
      @moeinsamani1467 5 місяців тому

      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"

  • @nothing9648
    @nothing9648 5 місяців тому

    can you do a version with graphql thnks

  • @saqomelqon1618
    @saqomelqon1618 5 місяців тому

    Unfortunately this doesnt work in a monorepo of nest.js

  • @user-ld1de1mc4h
    @user-ld1de1mc4h 9 місяців тому

    Are you streaming from the basement? :D

    • @mguay
      @mguay  9 місяців тому

      Oh yes!

  • @williamcao5139
    @williamcao5139 9 місяців тому

    Its awesome, plz make a course with Nest and prisma

  • @user-eu8pu2ir5b
    @user-eu8pu2ir5b 3 місяці тому

    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!