Nest.js Tutorial for Beginners

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
    In this Nest.js tutorial for beginners, we will look at what Nest.js is, compare NestJS vs Node.js and NestJS vs Express, and get a high level overview of NestJS basics as we begin creating a REST API.
    💖 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 Tutorial for Beginners - Part 1
    (00:00) Intro
    (00:09) Welcome
    (00:29) What is NestJS? Why use it?
    (02:37) Prerequisites & Series Goal
    (04:18) Install Node.js
    (04:39) Create a NestJS app
    (06:31) Overview of Basic NestJS Structure
    (09:15) Running the NestJS app
    (11:25) Creating a users module
    (13:37) Creating a users controller
    (14:12) Creating a users provider
    📚 Tutorial References:
    🔗 NestJS Official Site: nestjs.com
    🔗 Node.js Official Site: nodejs.org
    Was this NestJS tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.
    #nestjs #tutorial #beginners

Komentáře • 152

  • @andresbreuer
    @andresbreuer Před 9 měsíci +24

    Dave!! You´ve heard my prayers!!! This is going to be AWESOME!!! Always gratefull of your work and dedication. God bless you!

  • @unhandledexception1948
    @unhandledexception1948 Před 8 měsíci +4

    So happy to see you dig into this awesome framework. It does so many things extremely well, and I am looking forward to the next videos in the series

  • @alirabiei2344
    @alirabiei2344 Před 9 měsíci +14

    your channel is becoming the go to place for web devs of all levels, nice stuff 🔥🔥

  • @stereoboiiii
    @stereoboiiii Před 9 měsíci +2

    What I like is that as soon as I start learning a new technology, there are tutorials on your channel that really help me understand the basics and lots of interesting things, which accelerates my learning. Thank you very much, Dave, you make excellent educational videos. Thank you again for your work.

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

    Amazing Tutorial Mr. Dave. This tutorial series is one hell of a gem on CZcams.

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

    Dave I've got to say I am VERY grateful you made this tutorial! I am loving this Nest.js course and the framework itself too. I finally found my backend framework to make me a fullstack developer! Thank you so much Dave 🙏

  • @AIZEN155
    @AIZEN155 Před 9 měsíci +2

    Oh man , Dave makes you learn any thing to create your dream website , thanks Dave for every thing

  • @ramziricardo4259
    @ramziricardo4259 Před 9 měsíci +18

    This is going to be AWESOME! I hope you will make a Fullstack Tuto in the future where you combine ( Nest js + Next js) !

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

      yes right

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

      Yessss, we need that

    • @magnacarta7045
      @magnacarta7045 Před 7 měsíci +2

      why? You literally just need to call a NestJS endpoint on your NextJS client and that's it

  • @UwU-dx5hu
    @UwU-dx5hu Před 9 měsíci

    oh my gooooooooood!!!!!
    i was literally waiting for something like this!!!!
    I was going from one channel to another channel in search of a good nestjs course.
    And you just ,you just, you just......love you sensei

  • @davithchhung7577
    @davithchhung7577 Před 9 měsíci

    I can't believe that make this series. I have been using this framework for a while. I can't wait to learn from yours.

  • @jaycodes8790
    @jaycodes8790 Před 9 měsíci +1

    Waiting for so long to have a video on NestJs from you.... ❤️❤️❤️
    Thanks Dave

  • @ghulammujtaba9236
    @ghulammujtaba9236 Před 9 měsíci +1

    This is simply amazing. I wanted to learn nest js and explore the backend once again. Thank you man. Kindly make this a detailed series with a project exploring the ins and out of the nest js.

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

    Can't wait to see the next part. Thanks for your efforts Mr. Gray

  • @ewaevva4375
    @ewaevva4375 Před 9 měsíci

    Been waiting for this course, thanks so much Dave 🤩

  • @juhandvan
    @juhandvan Před 9 měsíci

    Thank you so much! I've been looking forward to this tutorial for a really long time.

  • @SniperKillerARG
    @SniperKillerARG Před 9 měsíci

    Yesterday i was talking with friends about we would like a course of nest and here it is. THANK YOU

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

    This is very cool!!
    When I saw the title from Dave's channel, I was very happy ❤
    I hope the Tutorial covers socketio and advanced topics using nestjs.
    Thank you very much Mr Dave ,You are very awesome , the best on CZcams 💥

    • @babayaga6172
      @babayaga6172 Před 9 měsíci +1

      Now i am going to add Nestjs to my Resume ❤

  • @umman000
    @umman000 Před 9 měsíci

    Thanks for this series. I hope this series will be more huge and long

  • @sujayxaradhya
    @sujayxaradhya Před 9 měsíci

    Finally! My wait is over. Thank you Dave🙏

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

    Thank you so much Dave, I've learned everything I know about web development from you and your videos are amazing. I was hoping to see a video about integrating nextjs and nestjs as well.

  • @pituboy
    @pituboy Před 9 měsíci

    Thanks for the Nest.js Tutorial, I love your JavaScript tutorials so much.

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

    What a timing! I've recently started learning Nest.js! Nice!

  • @TheOsama651
    @TheOsama651 Před 9 měsíci

    Was waiting for you to do it. Thanks

  • @publish-ittravel3367
    @publish-ittravel3367 Před 9 měsíci

    I am really excited to learn nest from you. Thanks a lot.

  • @dimitmoto1716
    @dimitmoto1716 Před 9 měsíci

    Man thank you very very much!
    God bless you!
    There are no many good resources for Nest.js and we use this framework in my company.
    Please include also testing in this series.

  • @chinonsoojoechem1462
    @chinonsoojoechem1462 Před 9 měsíci

    Dave, you read my heart.
    This came at the right time. God bless you

  • @firstlastcode
    @firstlastcode Před 9 měsíci

    This is the course I have been looking for thank u very much

  • @varileshtlesht7091
    @varileshtlesht7091 Před 9 měsíci +2

    Thank you for your amazing courses Dave.
    I've been your follower since you had 10k and I've learned a lot from those.
    please after Nestjs course can you also include a Angular course or a full stack Nest+Angular course it would be great.
    thank you again.

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

    Thank you very much for your course!

  • @obiaboimmanuel8729
    @obiaboimmanuel8729 Před 9 měsíci +1

    Thanks alot Dave. God bless you for this

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

    some quality stuff on youtube.
    Keep it up man.

  • @mahendranath2504
    @mahendranath2504 Před 9 měsíci

    Awesome thank you Dave 👋👌👍✌️😍🫶🏻👍👏🏻✌️🤝

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

    WOW I am waiting for this !

  • @mohammedidris5952
    @mohammedidris5952 Před 9 měsíci

    Hell of series... Thanks grey ❣️

  • @codewithguillaume
    @codewithguillaume Před 9 měsíci

    AMAZING! Thanks DAVE !

  • @jaeuchoi9948
    @jaeuchoi9948 Před 9 měsíci

    Dave! thank you so much!

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

    That tip at the end meant a lot, as I tend to be a perfectionist. Thanks, mentor :)

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

    Thanks! I learned a lot from your channel.

  • @GhafooriIsCoding
    @GhafooriIsCoding Před 9 měsíci

    Thank you for that, I really need to start with nestjs

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

    That's amazing!!!!Looking forward to this series

  • @rastapoile
    @rastapoile Před 9 měsíci

    Thanks a lot for this new interesting course !

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

    Cover every topic of Nestjs In depth.
    Thank you.

  • @lopo889
    @lopo889 Před 9 měsíci +1

    No way!!!!! I'll be waiting for your guards explanation

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

    Thanks for the video

  • @sarrthecode
    @sarrthecode Před 9 měsíci +1

    Hi Dave using the ideas that you exposed on your nodejs course i implemented complete authentication and authorization from front to back using nestjs, react, secure cookies and jwt. Thanks for your teaching you are the best.

  • @anjaneyulub2529
    @anjaneyulub2529 Před 9 měsíci

    Thank you Dave learnt a lot from u excited to learn this also❤😅

  • @user-fd9kl9bk4k
    @user-fd9kl9bk4k Před 9 měsíci +2

    Всё круто👍🏻.
    Ждём микросервисы! А ещё next js + nest js

  • @FredBCavalheiro
    @FredBCavalheiro Před 9 měsíci

    Excellent content. I am from brazil and I learn a lot with your videos. Thanks.

  • @dipanshusabharwal
    @dipanshusabharwal Před 9 měsíci

    Thank you Dave.

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

    Thanks Dave ❤

  • @william_phyo
    @william_phyo Před 9 měsíci

    Thank you very much.

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

    Awesome tutorial 🎉🎉

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

    Fantastic !

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

    Dave... Sometimes I think you are secretly watching me. Because whenever I need to learn something, you are making a tutorial for it. 👌

  • @MOJICA7257
    @MOJICA7257 Před 9 měsíci

    Thanks Dave
    Cheers🎉🎉🎉🎉

  • @ScriptRaccoon
    @ScriptRaccoon Před 9 měsíci +1

    Good tutorial! I already learned about the basics of Nest.js, but I never understood so far why one would want to use this as compared to Express. For me, this feels like Angular: very overengineered for simple applications (such as the one we get with the starter template) and quite complicated. But I assume that this is the right approach for big and complex applications. Having said this, I would be very happy if your tutorial series will answer the question "why Nest.js?" (not just how the syntax looks like) and maybe even demonstrates this with a complex application to see the benefits in action.

  • @philippearras8154
    @philippearras8154 Před 9 měsíci

    Thanks a lot

  • @hyakimaru8614
    @hyakimaru8614 Před 9 měsíci

    Fullstack journey ! 🚀

  • @Ta9i
    @Ta9i Před 9 měsíci +1

    im already familliar with nest and use it every day but im gonna follow the course

  • @olymahmud9909
    @olymahmud9909 Před 9 měsíci

    Thanks ❤

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

    Lovely!

  • @dev_franqqi
    @dev_franqqi Před 9 měsíci

    Thanks Dave

  • @VK-sn3sn
    @VK-sn3sn Před 8 měsíci

    Please bring tutorials fast. You explain brilliantly

  • @mahdiandalib186
    @mahdiandalib186 Před 9 měsíci

    thx man, i hope you create tutorials where you will create api for angular projects and teach us how to use angular and nestJS together

  • @bugraotken
    @bugraotken Před 9 měsíci +7

    By the way I don't know if Dave will mention about it but instead of creating all resource files (modules, services, controllers..) one by one, you can just type "nest g res [NAME]" and under [NAME] folder you provided, it creates all files there. "res" in the cli command stands for "resource". And in addition you can add --no-spec flag to this code and it stops creating test spec files. CLI asks you the type of endpoint, just choose REST and when it asks you to create CRUD files, choose no. (btw you can choose yes and see how nest.js is great for you! =)))

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 9 měsíci +2

      All true, and I will get there. Too much at once for most just starting with Nest though. I'll bring it in one at a time for now.

    • @AngelHdzMultimedia
      @AngelHdzMultimedia Před 9 měsíci +2

      And to avoid having to add `--no-spec` flag for every generated item, add `spec: false` under `generateOptions` in the `nest-cli.json`.

  • @rayenselmen603
    @rayenselmen603 Před 9 měsíci

    Great !

  • @yacine5046
    @yacine5046 Před 9 měsíci

    the best teacher will explain the best framework

  • @saskia3676
    @saskia3676 Před 9 měsíci

    Amazing

  • @mohitcodeswell
    @mohitcodeswell Před 9 měsíci +3

    I've been working with NestJS for half a year, and my perspective is that it essentially serves as an opinionated and class-based wrapper around Express.js. Creating a custom wrapper on top of Express can also be efficient and effective. Some surveys suggest that Nest might have performance considerations, but regardless, it remains a solid and scalable choice for backend development.

  • @ja909
    @ja909 Před 9 měsíci +1

    Looking forward to this series. It would be great if you could compare the use case for nestjs vs Nextjs API routes and Nextjs server actions, e.g. why use nestjs in addition to nextjs?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 9 měsíci +2

      I won't compare in this series, but quickly, I view Next.js routes as a way for client components to use an API relay. Server components can request directly from the data source. Nest.js (and / or Node + Express) offer more in terms of building a full featured REST API in my opinion. Maybe Next.js will get there at some point.

  • @bugraotken
    @bugraotken Před 9 měsíci +2

    As a front-end developer I really love how Nest.js works, runs and makes backends really easy. So sometimes I create backend projects with it just to feel happy =) But the downside is it's speed comparisons are %10 slower than regular Express. But I don't care, very robust framework!
    Thank you Dave

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

    Good lesson, like it! The file structure seems like Angular but the logic seems like Java.

  • @musicord3132
    @musicord3132 Před 9 měsíci

    I hope you include web sockets! in this series

  • @williamcao5139
    @williamcao5139 Před 9 měsíci

    great work, Nestjs is the best nodejs backend framework

  • @biLLie_wiLLie
    @biLLie_wiLLie Před 9 měsíci

    I waited for it for a long time. This is very attractive. I expect it will be better and last longer then course of Net ninja

  • @samislam2746
    @samislam2746 Před 9 měsíci

    Great 👍👍👍👍👍

  • @parmetra
    @parmetra Před 9 měsíci

    I was just looking for the right course and then I saw your video, Dave! I really hope that in your series of NestJS videos, you will use one of the ORMs: Drizzle or Kysely.
    Thank you!

    • @bugraotken
      @bugraotken Před 9 měsíci

      Prisma

    • @parmetra
      @parmetra Před 9 měsíci

      @@bugraotken I've heard that Prisma is heavier but more popular. However, there is already more than one video on CZcams about integrating Prisma into NestJS. What can't be said about Drizzle ORM or Kysely ... 😔

    • @bugraotken
      @bugraotken Před 9 měsíci

      ​@@parmetra In every Nest.js video I have watched and finished, they were using Prisma as the ORM. There is also TypeORM but everyone was complaining about it cause they made a huge update and the previous codes was not compatible with the new codes. I have heard about Drizzle but haven't used it.

  • @Khalil.WebDev
    @Khalil.WebDev Před 9 měsíci +1

    Expecting this from Dave. I love working with NestJs because its fast and easy in development

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

    wowowow, unbelievable

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

    I like Nestjs especially it's nodejs inspired by spring boot ❤

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

    Urgent updates, looking forward to updates👀

  • @rorn-dev
    @rorn-dev Před 9 měsíci

    Haha finally my work place framework tool is come .

  • @kimayapanash8998
    @kimayapanash8998 Před 9 měsíci

    I think of learning something and you put out a tutorial for it 😅

  • @firstlastcode
    @firstlastcode Před 9 měsíci

    I hope u will be using Prisma as well

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

    Hi Dave, ESLint 9.0.0 is out (breaking changes). If you have time/will, please make a video on ESLint and Prettier in Nest.js.
    It would be really appreciated. Thanks in advance.

  • @NiwatiX
    @NiwatiX Před 9 měsíci

    In all honesty I thought it was a typo for Next... im very suprised and i like this framework

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

    This is another excellent video Dave, my question is that if NextJs is providing client & server side features, then why we need to learn NestJs. We should go for NextJs as it has complete package for both client end and server end. this is what I know according to my limited knowledge. if there is any more features please share.

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

      There will always be multiple languages and frameworks used to achieve the same outcomes. Many times, the choice is preference. Currently, I do believe NestJS offers much more for robust backend REST API construction.

  • @ankur14
    @ankur14 Před 9 měsíci

    Hi Dave, what's your thought on nextjs 14, and is the course still good to go with as there are not many changes in the update?

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

      It's early for me to know much but I saw a tweet that said "No new APIs".. Sounds like it will simply build on what we've learned with 13.

  • @vramosjd
    @vramosjd Před 9 měsíci

    Lezzgooooo

  • @rashidbehnam2139
    @rashidbehnam2139 Před 9 měsíci

    🤩🤩🤩

  • @codedusting
    @codedusting Před 9 měsíci

    This looks exact replica of Angular but for the Backend.

  • @LodeStarYT
    @LodeStarYT Před 9 měsíci

    Hey Dave! I was wondering if NestJS is worth using with NextJS 13+ because of all the server side rendering and do we even need API end points

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

      Like most answers.. it depends on the project requirements. You could need a robust backend REST API and NestJS is great for a large, scalable solution.

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

    ❤❤❤

  • @narenk8077
    @narenk8077 Před 9 měsíci

    Hi Dave, already next.js done earlier right, what is difference this one?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 9 měsíci

      A quick watch of the first few minutes will tell you the different between _Nest_ and _Next_ .

  • @lordbeerus9532
    @lordbeerus9532 Před 9 měsíci

    Hello Sir, can you give some tips and instructions on how to learn new technologies, programming languages or anything as efficiently as possible.

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

      Learn just a little bit more every day. Stay consistent. It adds up.

  • @user-ck7ts3ml1g
    @user-ck7ts3ml1g Před 9 měsíci

    Can you suggest some good blogs to follow? Also, any plans to continue your blog? Thanks.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 9 měsíci

      Near the top of my list is building a new blog. 🚀 I don't have other specific blogs I follow. I read things from all over. Just depends what I am searching for.

  • @bishop2121212121
    @bishop2121212121 Před 9 měsíci

    Hi, I was wondering, could we use the command "nest g resource [name]"?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 9 měsíci

      Yes, that creates everything all at once. I will mention later, but that is creating too much at once for now. I want to step through each part.

  • @md-abid-hussain
    @md-abid-hussain Před 8 měsíci

    What is the name of the font you are using in Vscode? I tried finding it but had no luck.
    😅

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

    👍👍👍

  • @Sakuragi4
    @Sakuragi4 Před 9 měsíci +1

    Hello Dave, I dont know anything about programing, can i start with this??

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

      No, I suggest following my Web Dev Roadmap linked in the description of the video.

    • @Sakuragi4
      @Sakuragi4 Před 9 měsíci

      Thank you so much Mr. Dave@@DaveGrayTeachesCode