NestJS & Prisma Tutorial

Sdílet
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

Komentáře • 28

  • @Ninnja34
    @Ninnja34 Před 5 měsíci +5

    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 🔥✊🏿

  • @shakapaker
    @shakapaker Před 6 měsíci +1

    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.

  • @milanbarac2876
    @milanbarac2876 Před 5 měsíci

    Well done! Very practical and easy to follow tutorial... :)

  • @saranr1467
    @saranr1467 Před 4 měsíci

    Very good coverage , thank you for the great work

  • @prashlovessamosa
    @prashlovessamosa Před 6 měsíci

    Thanks Anson.

  • @mahmoudnada2120
    @mahmoudnada2120 Před 6 měsíci

    Thank you 🎉

  • @harshpadelkar8413
    @harshpadelkar8413 Před 6 měsíci

    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.

  • @marvinxu2950
    @marvinxu2950 Před 3 měsíci

    Anson, how do you create a swagger documentation with prisma? Do you also need to create entity classes?

  • @dr-Jonas-Birch
    @dr-Jonas-Birch Před 6 měsíci

    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

  • @PattyBeautCode
    @PattyBeautCode Před 5 měsíci

    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

  • @user-gk9xq8tp1w
    @user-gk9xq8tp1w Před 4 měsíci

    Which vs code theme are you using?

  • @bonchan4404
    @bonchan4404 Před 4 měsíci

    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 !

    • @ansonthedev
      @ansonthedev  Před 4 měsíci

      It's really not any different, especially since it's also a SQL database.

  • @mehmetaliuyar3051
    @mehmetaliuyar3051 Před 5 měsíci

    Please nodejs microservice arch !!! ♥

  • @asadmehboob1300
    @asadmehboob1300 Před 6 měsíci

    Thank you very much..can we need repository system with Prisma or drizzle orm

    • @ansonthedev
      @ansonthedev  Před 6 měsíci +1

      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.

  • @preslavgetov1330
    @preslavgetov1330 Před 5 měsíci

    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!

  • @Assassxndev
    @Assassxndev Před 6 měsíci +1

    Please create a new series for how to create a discord bot dashboard with react and ts

  • @gregscolumn
    @gregscolumn Před 6 měsíci

    just to confirm this can also work with Portgresql db right ?

  • @degradinguser
    @degradinguser Před 4 měsíci

    21:49

  • @furkanc6407
    @furkanc6407 Před 6 měsíci

    Thank you 🎉