Nest.js Controllers Tutorial

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
    In this Nest.js Controllers tutorial, you will learn how NestJS manages routing HTTP requests from clients to controllers. Controllers can manage multiple routes in your REST API application.
    💖 Support me on Patreon ➜ / davegray
    ⭐ Become a full-stack web dev with Zero To Mastery Courses:
    - The Complete Node.js Developer: bit.ly/CompleteNodeJS
    - Advanced React: bit.ly/AdvReactDev
    - Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
    🚩 Subscribe ➜ bit.ly/3nGHmNn
    📬 Course Updates ➜ courses.davegray.codes/
    ❓ Questions - Please post them to my Discord ➜ / discord
    ☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
    👇 Follow Me On Social Media:
    GitHub: github.com/gitdagray
    Twitter: / yesdavidgray
    LinkedIn: / davidagray
    🔗 Source Code: github.com/gitdagray/nestjs-c...
    🔗 Playlist for this NestJS Series: • NestJS Tutorials for B...
    Nest.js Controllers Tutorial for Beginners - Series Part 2
    (00:00) Intro
    (00:05) Welcome
    (00:25) Starter Code
    (00:43) Quick Review
    (02:50) What are Controllers? And how do they work?
    (03:38) Controller structure
    (06:06) GET Routes
    (08:26) Route Order is Important
    (12:24) POST Route
    (14:38) PATCH Route
    (17:04) DELETE Route
    (18:15) Query Parameters
    📚 Tutorial References:
    🔗 NestJS Official Site: nestjs.com
    🔗 Node.js Official Site: nodejs.org
    Was this NestJS Controllers tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.
    #nestjs #controller #tutorial

Komentáře • 42

  • @SniperKillerARG
    @SniperKillerARG Před 8 měsíci +7

    Thank you!, i've just finished the Typescript 9 hours tutorial, i will continue with this one!

  • @mattburgess5697
    @mattburgess5697 Před 8 měsíci +2

    Nice one, Dave. Tools like NestJS and Adonis are undervalued by the JS community IMO. They are enormously productive and powerful tools providing a developer experience that the likes of Express simply can’t match.

  • @PattyBeautCode
    @PattyBeautCode Před 8 měsíci +1

    I am already addicted to your NestJS tutorial. Thank you very much

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

    Thank you !!!! Eagerly awaiting the next chapter of this video series.🥰

  • @codyfingerson743
    @codyfingerson743 Před 8 měsíci +1

    So excited for this! Have been thinking of diving into NestJS lately! The timing of this series is spot on for me lol. Thanks Dave!!!!

  • @user-ld1de1mc4h
    @user-ld1de1mc4h Před 8 měsíci

    There are so many tutorials for Nest.js here in youtube, but it is much better when your favourite teacher is doing a tutorial series about it! Thank you Dave!

  • @ivanmalaiu
    @ivanmalaiu Před 8 měsíci +1

    Thank you Dave, this course is great!

  • @DevBossMa
    @DevBossMa Před 8 měsíci +1

    Thanks Mr Dave for your hard work and dedication to helping us improve our skills 🙏🙏

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

    Thanks Dave. Great tutorials

  • @kirillzlobin7135
    @kirillzlobin7135 Před 7 měsíci

    Amazing. I need this so much now

  • @paulthomas1052
    @paulthomas1052 Před 8 měsíci

    Cheers - look forward to the rest of the course.

  • @TravinskiyVladislav
    @TravinskiyVladislav Před 8 měsíci

    Thank you very much Dave

  • @vladislavamarkova8379
    @vladislavamarkova8379 Před 8 měsíci

    You help people so much! 🙏

  • @user-lo7xh5jz4t
    @user-lo7xh5jz4t Před 8 měsíci +1

    Amazing course

  • @conchobar0928
    @conchobar0928 Před 8 měsíci

    Really looking forward to the rest, had to start learning Nest for work a month ago and there are so few resources for Nest on CZcams or elsewhere!

  • @sherlocksummer6284
    @sherlocksummer6284 Před 2 měsíci

    Thanks Dave for the video

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

    You’re really amazing ❤❤❤

  • @shouryasinghrathore2727
    @shouryasinghrathore2727 Před 8 měsíci

    Quality content ❤

  • @JonBrookes
    @JonBrookes Před 8 měsíci

    Fantastico !
    nestjs is well complemented by your coverage. You can read the docs, and you should but your tutorials are pragmatic and real

    • @JonBrookes
      @JonBrookes Před 8 měsíci

      I guess your covering the building blocks, having done controllers, I guess modules, services etc., might you be doing swagger at all, I found this to work well with NestJS , similar to how FastAPI does this almost out of the box, making NestJS in my thinking as attractive as FastAPI for getting a lot done with less wrangling. I've found though that some other api frameworks maybe don't support this as directly and rely on 3rd party tooling. The experience of NestJS is generally a good one I've found and benefits all the more by your videos on this, which as ever are excellent. Thanks again Dave.

  • @testaccount9420
    @testaccount9420 Před 2 měsíci

    As this is your course. I have to complete it 😼

  • @a7medabdulshafi887
    @a7medabdulshafi887 Před 8 měsíci

    Your voice and way you teaching are awesome like your baby face ❤🎉 greetings

  • @nandinisatpathy8534
    @nandinisatpathy8534 Před 8 měsíci

    Hi Dave, enjoyed your lectures on Nest js, can you also add nest js integration with GraphQL in your future courses?

  • @self2008self
    @self2008self Před 8 měsíci

    Thank you🎉❤

  • @user-mq8wf9iy5l
    @user-mq8wf9iy5l Před 8 měsíci

    Thanks for the tutorial, really helpful !
    ps: Which VsCode theme are you using ?

  • @aj-jw1gz
    @aj-jw1gz Před 5 měsíci

    which VS code extension do you use for auto complete for example in 6:14?

  • @junedsetiawan
    @junedsetiawan Před 8 měsíci

    Thank you Dave, I've never learned Nest JS but I've learned typescript in your playlist, it's time to use typescript in the backend, will this playlist be up to hosting and deployment the application?

  • @kocourekkocourek-pq2tm
    @kocourekkocourek-pq2tm Před 8 měsíci +1

    I would like to see very strong secure authenitacion with best practice and with all great features like email confirmation reset and forget password etc. in this series.

    • @conchobar0928
      @conchobar0928 Před 8 měsíci

      Yeah like, the Nest community uses Passport, which the express community derides as unmaintained...or maybe the Nest version is fine?

  • @iUmerFarooq
    @iUmerFarooq Před 8 měsíci

    The next course on Nuxt 3 please

  • @user-og9fq3lu8d
    @user-og9fq3lu8d Před 8 měsíci

    Hi dave can you do fastAPI tutorial ?

  • @sashaBejenari
    @sashaBejenari Před 8 měsíci

    Thx

  • @roxo1763
    @roxo1763 Před 8 měsíci

    Which VS Code theme do you use?

    • @jerrytan2319
      @jerrytan2319 Před 7 měsíci

      material-icon-theme and enable the nest icons in your user settings: "material-icon-theme.activeIconPack": "nest"

  • @user-dy3wk3ly9b
    @user-dy3wk3ly9b Před 8 měsíci

    Boom 👌❤️

  • @belkocik
    @belkocik Před 8 měsíci

    Are you going to use Prisma ORM or TypeORM? I would rather see a Prisma ORM, because there a lot of tutorials with TypeORM in YT so far.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 8 měsíci +1

      Yes, I'm thinking Prisma. Good docs, stable releases, and it has demand. I may cover other ORMs in the future, too.

  • @saeedkhazalvand4821
    @saeedkhazalvand4821 Před 8 měsíci

    Hello Dave,
    First huge apprecian for ur great videos,
    Save, I have spent many hours on React with ur course and others , I write codes with great confidence and now I m finishing ur node course , I do coding complete by my self and enjoy it.
    But I feel still has something to know absolutely I know and believe codin has no end and we must be update that's why I m learning Zustand .
    But in job offer I see something different like postman , we socket and ...
    as my instructor , what are the next for me , I have a bit info about them but .. I m confused...

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 8 měsíci +1

      It sounds like you're doing great. I have a link in the description of my videos for my web dev roadmap. If you wonder what I recommend next, take a look at that map first.

  • @KimiaSam
    @KimiaSam Před 8 měsíci

    love your channel♥️
    I have a question in rtk query
    Would you please help me, how to prevent rtk from calling invalidatesTags if error happens?! Why rtk calls getAll api when error happens in add? How to prevent that?😅

  • @buivanthang8118
    @buivanthang8118 Před 8 měsíci

    can you make a video about discord clone with nestjs + nextjs 14 sir?