NestJS Crash Course

Sdílet
Vložit
  • čas přidán 7. 06. 2024
  • Here's a NestJS Crash Course that I put together with all of the core fundamental concepts that you will need to be able to build a web API.
    If you liked this video, check out my other Nest.js tutorials!
    NestJS with TypeORM & SQL: • NestJS, MySQL, TypeORM...
    NestJs with MongoDB: • NestJS with MongoDB & ...
    NestJS w/ GraphQL & TypeORM: • NestJS, GraphQL & Type...
    NestJS Playlist: • [In-Depth] Nest.JS Tut...
    Code: github.com/stuyy/nestjs-crash...
    Support the Channel:
    Become a Member: czcams.com/users/ansonthedevel...
    Become a Patreon: / stuyy
    Buy me a Coffee: ko-fi.com/anson
    Donate on PayPal: paypal.me/ansonfoong
    Connect with me:
    Twitter: / ansonthedev
    Discord: / discord
    GitHub: github.com/stuyy
    Twitch: / stuy
    0:00 Introduction
    2:00 Install Nest CLI
    3:10 Create Nest Project
    5:00 Project File Overview
    8:10 main.ts file
    9:55 Generating a Nest Module
    11:00 Generate a Controller
    14:00 Handling Routes
    19:50 Post Requests
    26:00 Request Bodies and DTOs
    29:40 Route Params
    33:48 Query Params
    35:46 Validation
    47:00 Services & Providers
    1:03:18 Middleware
    1:17:36 Pipes & Transformations
    1:31:44 Guards
  • Jak na to + styl

Komentáře • 123

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

    Not sure where to go from here? Check out my other NestJS tutorials & my full in-depth playlist:
    NestJS with TypeORM & SQL: czcams.com/video/W1gvIw0GNl8/video.html
    NestJs with MongoDB: czcams.com/video/dJz94r5C3QA/video.html
    NestJS w/ GraphQL & TypeORM: czcams.com/video/CSfZmyzQAG8/video.html
    NestJS Playlist: czcams.com/play/PL_cUvD4qzbkw-phjGK2qq0nQiG6gw1cKK.html
    More to come. Stay tuned!

  • @victordequeirozalves5108

    Awesome work! Really appreciated how you cover the common use cases of each topic in an objective way👏

  • @mr.elshahat
    @mr.elshahat Před rokem +3

    Great effort, I realy enjoyed this crash course and will continue to watch all your tutorials for NestJS. Keep up the good work 👏

  • @SRPPixels
    @SRPPixels Před rokem +23

    Great crash course man! Perfect for those who already know express and just want to get their hands-on with nest and don't want to spend more time in learning, My new company is using nest, but previously i have only worked with express. But i liked Nest. Your tutorial really helped me a lot. And now i can easily understand our whole codebase. Thanks. Cheers 🥂

  • @improvingwithfun
    @improvingwithfun Před rokem +6

    "I want to be consistent with NestJS docs" 👏
    I will recommend this course when someone asks me for a good video series on NestJS. I've been watching a few of your playlists and can't be grateful enough.

  • @arnaud_b42
    @arnaud_b42 Před rokem +2

    Great content! I'm learning all i need for my last project @school42. Thanks and keep up the good work!

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

    Those who are checking comment, whether its worth. I will say 101% YES, this tutorial is to the point and precise. If you want to dig deeper refer docs after watching this tutorial . Thanks Anson

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

      Thank you very much! Glad you enjoyed the video.

  • @forinda
    @forinda Před rokem +2

    Amazing explanation. This is the tutorial I needed to kickstart my Nestjs Development

  • @AliAliOxenFree
    @AliAliOxenFree Před rokem +4

    honestly i wish i had found this video (playlist) earlier. this is infinitely better than the other tutorials out there.

  • @oussamasadiki7377
    @oussamasadiki7377 Před rokem +2

    Man you really explain things really well, i appreciate the nice tutorial it does illustrate lot of thing to me.

  • @mdhasanuzzaman1546
    @mdhasanuzzaman1546 Před rokem +2

    The course was really nice!
    Shrot and sweet.
    Thanks you so much for that great course.

  • @bittek3843
    @bittek3843 Před rokem +4

    great stuff, just finished watching your video! Would love to have you chat about the fundamentals that are running nestJS like DI, the architecture style they use layered architecture (i think ?) etc. I find this type of stuff really helps with understanding what is happening behind the scenes.

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

    A great crash course!! Very well-organized steps, clear and thorough explanations with good examples! Thank you :) It would be awesome if you made a tutorial on Dependency Injection too!

  • @ethani_
    @ethani_ Před rokem +2

    This video was extremely helpful and informative. Thank you for making this video!

  • @adhy612000151
    @adhy612000151 Před měsícem

    thanks anson!
    i just starting move on from django rest framework to nestjs.
    thanks for your great explanation!

  • @rebei
    @rebei Před 10 měsíci

    Thanks a ton. Helps me with my 42 course project!

  • @sanfer587
    @sanfer587 Před rokem

    Very good content man, I'm learning nest to my university work and you help me a lot, ty

  • @cayenne2able
    @cayenne2able Před rokem

    You are amazing. Thank you for paving the way.

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

    Great job dude ... it helps a lot to understanding the basics and the power of nestjs🎉

  • @sumeetrana604
    @sumeetrana604 Před rokem +3

    Perfect course to start with Nestjs!!

  • @ziaurrahman9529
    @ziaurrahman9529 Před rokem

    Thankyou Anson, im so helpful with your this crash course!

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

    seriously did it great !! I loved your crash course, helped me a lot
    thanks Anson ! ❤

  • @ppnwt
    @ppnwt Před 10 měsíci

    Great crash course !!, you saved my life, Thank you.

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

    Excellent Coverage for a quick understanding, thank you

  • @huyvu2719
    @huyvu2719 Před 9 dny

    Great crash course ! thanks bro

  • @layvimol
    @layvimol Před rokem

    Great course! Thank you for your effort!

  • @lucduong9871
    @lucduong9871 Před rokem +1

    thank you so much

  • @NguyenLong-ob9fc
    @NguyenLong-ob9fc Před rokem

    1 hour through and I had to stop to thank youuuuuuu

  • @petermuraguri8608
    @petermuraguri8608 Před rokem +1

    Thank You Anson!

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

    Thank you for the video, very informing!

  • @ihorploskodnyak1294
    @ihorploskodnyak1294 Před rokem +2

    Thank you soooooo much for excellent course. You are one of the best teachers.

    • @ansonthedev
      @ansonthedev  Před rokem

      Thank you. Hope you enjoyed it!

    • @ihorploskodnyak1294
      @ihorploskodnyak1294 Před rokem

      You lessons are amazing. I learned nestjs from them. Thank you sir for that opportunity

  • @tafowocedric3946
    @tafowocedric3946 Před 29 dny

    Thank you for this scratch course, it was very insightful ❤

  • @emmanuelolajumoke8378
    @emmanuelolajumoke8378 Před rokem +1

    Thank you, i basically feel more confident using nestjs right now

  • @LieseLu
    @LieseLu Před 28 dny

    Thank you so much for making this video, I learned a lot from it!!!

  • @rekarromar
    @rekarromar Před měsícem

    This course worth 1000$, thanks very much👏

  • @quanghuy37934
    @quanghuy37934 Před rokem +1

    Thank you brother!!!

  • @cubedev4838
    @cubedev4838 Před rokem +4

    Please make more course using nestjs. Maybe ecommerce or cms. Just a simple project. So we know how nestjs work with frontend, backend, database

  • @ericjamesmanalang7173

    Great content! Thanks man! I learned a lot!
    @Anson, we are building an ordering / shopping app, any tutorial you can suggest?? thanks man!!

  • @nerdus8388
    @nerdus8388 Před rokem

    Thank you! It's was great.

  • @thiagowatanabe5087
    @thiagowatanabe5087 Před rokem

    Thanks bro, you are so good

  • @brianmagee2314
    @brianmagee2314 Před 11 měsíci

    Fantastic tutorial.

  • @az910
    @az910 Před rokem

    Thank you very much 🎉

  • @cyanide2426
    @cyanide2426 Před rokem

    Thank you!

  • @user-rn4yr2hq5c
    @user-rn4yr2hq5c Před 6 měsíci

    tnk u very much, it is really necessaray content

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

    Nice Video, Thank you :D

  • @MahmudIbrahim
    @MahmudIbrahim Před měsícem

    Hi, Anson. Thank you for these crash course on nest. Can you create a project based long video on nest.for example, making a e-commerce using nest and react.

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

    Thank you so much!!!

  • @me_3azim86
    @me_3azim86 Před rokem

    I checked - everything is clean

  • @sameeravhad6266
    @sameeravhad6266 Před 11 dny

    Great videos !!!. Why my VS code not giving intellisense suggestion for Nest js ?

  • @nguyentoanhnt
    @nguyentoanhnt Před rokem

    Thanks!

  • @kingsleyaham3192
    @kingsleyaham3192 Před rokem

    excellent tutorial please what vscode extension are you using

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

    Thank you man

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

    Your content is beyond awesome! I wish I had found your channel earlier.
    Could you please make a series on Typescript and a video on your VS Code's setup?

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

      Thanks. I will consider the Typescript course on my list of next courses to work on.

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

      @@ansonthedevMore power to you and Peace be upon you! ❤️

  • @vannakdy4974
    @vannakdy4974 Před rokem

    Thank you so much

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

    Great video. Thnx.

  • @user-fz3ry9vo5g
    @user-fz3ry9vo5g Před 7 měsíci

    Thanks 🎉🎉🎉

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

    i finished. esta bien. recommended.

  • @ammadkhan5275
    @ammadkhan5275 Před rokem

    I having a hard time understanding guard vs middleware , whats the purpose if both are working in a same way.

  • @speakthememe
    @speakthememe Před rokem

    thanks man

  • @mohamedbenhammouda3748

    best Series

  • @Johnny-rn8fb
    @Johnny-rn8fb Před rokem +1

    very usefull for beginers

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

    sir anson, your nestjs guard video that separated on your channel is included here on nestjs crash course? also the nestjs interceptors? or it's not the same content? like on the separated video has more deep dive?

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

      They are in a separated video in my NestJS playlist.

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

    Great !

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

    thanks sir about this video. may i ask what is 3 others video that unavailable for view for nestjs tutorials. Thanks sir

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

      They're upcoming videos scheduled for the next few weeks.

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

    thanks your video,

  • @Charles_001
    @Charles_001 Před rokem

    Great course, 👋

  • @rappy27
    @rappy27 Před rokem

    Hello, Anson.
    I'm new to NestJS and want to learn it, but I have a problem with my NestJS version, it stuck at version 7.6.0. I can't update it, and I've tried to uninstall and then install it again, but it still didn't work. When I uninstalled it, I can still use nest command like `nest -v`. I already tried updating my npm and node, clear npm cache, but still didn't work.
    Can you help me with that? TIA!
    Great video btw!

  • @user-ym7gg5ki6l
    @user-ym7gg5ki6l Před rokem

    very cool

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

    Js hero !!

  • @ozycozy9706
    @ozycozy9706 Před rokem

    Not sure how to send thanks 👋👋👋, sent you a coffee :)

  • @justinnoor4915
    @justinnoor4915 Před rokem

    Yes!!!

  • @CodeClem
    @CodeClem Před rokem +1

    Please the name of your VSCODE theme?

  • @cayenne2able
    @cayenne2able Před rokem

    Hi Anson, what is the theme you are using for your VS Code?

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

    11:40-11:46
    - nest generate controller users/controllers/users (with git bash)
    - nest generate controller /users/controllers/users (with cmd)

  • @goldenbobyRL
    @goldenbobyRL Před rokem

    thanks you, I will now just let you go ahead ;)

  • @vuxuanhuy9079
    @vuxuanhuy9079 Před rokem

    tks

  • @SiciidQaran
    @SiciidQaran Před rokem

    which browser you are using? its amazing.

  • @maythammahdi5238
    @maythammahdi5238 Před rokem

    great

  • @aadispare3673
    @aadispare3673 Před rokem

    Your theme extension name please??

  • @avacademy8115
    @avacademy8115 Před rokem

    Do I have to learn express JS before learning NestJS.
    I have urgent project I need to deliver in nestJS and I am considering going straight into NEST JS

    • @ansonthedev
      @ansonthedev  Před rokem +1

      No, not really. If you already are coming from a background of web dev, and have used frameworks like Spring Boot and .NET, you will grasp the concepts of NestJS just fine.

    • @avacademy8115
      @avacademy8115 Před rokem

      @@ansonthedev Okay. thanks. Already jumped on it and really like the content instruction. Thanks a bunch

  • @sohan6058
    @sohan6058 Před rokem

    Would love to see auth video

  • @andrejkling3886
    @andrejkling3886 Před 4 měsíci +1

    Thank you so very much for great tutorial 🔥🆒 Do you have some real project in which I can learn again examples which you shared on this tutorial?

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

      I'd suggest thinking of any kind of UI project in React or Angular, like a recipe book or expense calculator, and then think of how you'd need an API to communicate with, and how you'd save that data.

    • @andrejkling3886
      @andrejkling3886 Před 3 měsíci +1

      @@ansonthedevmissing react with postgresQl DB 🎉

  • @Charles_001
    @Charles_001 Před rokem

    What browser are you using for debugging? cool

    • @ansonthedev
      @ansonthedev  Před rokem +1

      It's Brave Browser.

    • @Charles_001
      @Charles_001 Před rokem

      @@ansonthedev "Cool," said an unemployed programmer from the far East.

    • @roflwaffles902
      @roflwaffles902 Před rokem

      @@Charles_001 hey man not unemployed for long if you keep up the work. believe in yourself

  • @rajnarayan9558
    @rajnarayan9558 Před rokem

    Hello sir can you share your vs code theme plz

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

    can I use middleware instead of guard?

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

      Yes, but ideally the guard is designed for handling user authorization, e.g: Denying a request if user is missing a role.

  • @pwveediyapeeth9th
    @pwveediyapeeth9th Před rokem

    Determination is key, and reframing of tNice tutorialngs you view as complicated.

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

    This is the start of a comment thread.

  • @thiagowatanabe5087
    @thiagowatanabe5087 Před rokem

    Do you have paid NestJS courses?

    • @ansonthedev
      @ansonthedev  Před rokem +2

      I do not! You can find almost everything you need to learn about NestJS on my playlist czcams.com/play/PL_cUvD4qzbkw-phjGK2qq0nQiG6gw1cKK.html

  • @Ro11ingBoy
    @Ro11ingBoy Před 15 dny

    Who's still watching in 2077?

  • @DianWirda-mx7tr
    @DianWirda-mx7tr Před rokem

    pantes depo mu

  • @BaktiantoPraba
    @BaktiantoPraba Před rokem

    Tadi gue gacor pake pola lu

  • @nguyenhuydinh
    @nguyenhuydinh Před rokem

    great work. thank you for doing this

  • @jediTempleGuard
    @jediTempleGuard Před rokem

    I don't know why but console.log did not work for me. Everytime I use console.log in any code I got "Cannot read properties of undefined (reading 'log') error. It took me several hours to realise I should use built-in logger (Logger.log). Great video btw. Thanks a ton for your effort.

  • @zerculable
    @zerculable Před rokem

    Thanks!