NestJS Crash Course: Everything you need to know! | NodeJS Tutorial 2023
Vložit
- čas přidán 28. 07. 2024
- In this video I walk you through a crash course of one the best Node.js frameworks: NestJS!
If you're completely new to Nest and are looking to understand the fundamentals, this is for you!
Topics covered include:
- Starting a project
- CRUD
- Modules, controllers, services, pipes
- Using the CLI to generate everything
- Request body, query params, url params
- Validation (class-validator)
- 3-layer architecture and dependency injection
- Swagger (Open API) documentation ... and more!
00:00 - Intro
00:23 - Topics we’ll cover
01:36 - Starting a new project
04:38 - 3 Layer architecture
07:40 - Configuring endpoints
09:40 - Creating a new module
13:20 - Parsing URL params
16:18 - Dependency Injection
22:55 - Body parsing, DTOs, and entities
29:13 - Puppy
29:46 - Swagger OpenAPI Docs
40:35 - Parsing query parameters
45:30 - Exception and error handling
50:11 - Pipes intro
52:45 - Validation
59:13 - Using the CLI to generate CRUD
01:02:30 - Quick intro to Guards, Interceptors, Middleware
01:04:25 - Conclusion
01:05:12 - Outro
Timestamps added so you can jump around and skip the boring parts!
00:00 - Intro
00:23 - Topics we’ll cover
01:36 - Starting a new project
04:38 - 3 Layer architecture
07:40 - Configuring endpoints
09:40 - Creating a new module
13:20 - Parsing URL params
16:18 - Dependency Injection
22:55 - Body parsing, DTOs, and entities
29:13 - Puppy
29:46 - Swagger OpenAPI Docs
40:35 - Parsing query parameters
45:30 - Exception and error handling
50:11 - Pipes intro
52:45 - Validation
59:13 - Using the CLI to generate CRUD
01:02:30 - Quick intro to Guards, Interceptors, Middleware
01:04:25 - Conclusion
01:05:12 - Outro
Thanks Marius. How did you do the animation when typing in the terminal? Is it in iTerm settings? Thanks
That was using hyper terminal, it’s just one of the plugins. It’s a pretty hackable terminal, check it out!
@@mariusespejo Thank you. I'm fond of customizing different things and was surprised that I didn't know this. Will share your channel to my friends and colleagues. Wish that your channel will be big in no time. Salamat po Lodi :)
Can you male a video on nest js refresh token?
Dto = data transfer object, which really could be anything. It’s just meant to represent any data that’s being passed around
Entities you can think of as Dto that is specifically representing the shape of your database tables, like if you’re using an ORM
Love how you pay attention to details by zooming, darkin temporarily unnecessary parts of the video etc. Thanks, keep it up!
thanks Bartosz! I’m glad you mentioned that, it adds a lot of time to the editing process but I’m hoping it increases clarity and focus
@@mariusespejo It's hard not to mention that, because it's really helpful!
Yes. It is really very useful. Thanks for taking the time to do that.
New favorite teacher. I like that you are straight forward, and no fluff. Just getting to the meat. Awesome work!
Great video! Not idling around what very basic tutorials repeatatively had and teaching real concepts which an experienced programmer new to nestjs would need. Thanks!
Totally awesome video. Loved it, and finally feeling confident to use nestjs. Also loving the features of nestjs. I was looking for a more structured alternative of expressjs.
hah my guy, thank you for coming through for me. You are awesome. I remember asking for such a tutorial on one of your previous videos
Man, it's one of the best videos that i've ever seen. Thank you very much, i'm going to see the other NestJS videos from you 🤙
Really appreciate the video! This is one of the most clear and quick introduction I have ever seen about this framework.
Thanks! I’m glad you think so! I’ve got a couple more Nest content in the channel if you’re interested
Great tutorial! Covered all the important topics.
I came across your channel when I was looking into AdonisJS but with this I feel a lot more confident using a less opinionated framework
I am clearly biased but Nest is great 😄 I do plan on probably making some more content for adonis soon, since my one video about it was when v5 was still in preview. v5 has been released since then
I really like the way you teach. You have set up this sequence perfectly! I understand everything that you've tried to say. Keep going, bro!!
Thank you Nattawoot! Definitely looking to grow my channel’s content, and I’m glad you are liking the teaching style!
Great video! Very useful serie for my dive into NestJS! Thanks a lot!
Hey, this is the most comprehensive lecture on NestJs.
Thanks my man.
thanks for the feedback Ateeb, glad it’s helpful!
This is great, thank you! I love how you explain what everything is doing as you go along, often things are brushed over in videos and online tutorials and you never really understand what some things are doing. I am about to embark on a new API for an application so onto the typeORM video next for me :)
thanks Dean!! I appreciate your feedback, good luck on your project!
Superb review of fundamentals. I filled in some crucial gaps in my Nestjs knowledge.
This video is amazing, thank you for such fabulous explanation.
Automatically subscribed because he explained it well and added timelines in the video. Other CZcamsrs are lazy and don't add timelines.
Your tutorials are incredible. Thank you
Man this video is real stuff. I was looking for a framework to switch my backend from Java Spring to Nest because I use Angular in front-end and it's so enjoyable to have the same language and structure between front and back. Your video helped me a lot ! All the fundamentals in one hour it's just amazing. Thanks a lot man !
it actually takes a lot of inspiration from spring and angular from my understanding, sounds like a good fit for you!
Yeah, I am also an Angular developer. This makes me feel at home ^_^ Have been using Express for years, now I think it's the time to make some changes.
Thank you so much for this video. I found it very easy to follow along and you do a great job of explaining this complex framework in a way that makes sense
Thank you for the feedback! I’m glad it was helpful for you!
I normally don't comment on videos, but people who haven't discovered this channel are missing out, this video has clarified some important concepts I was struggling with.
Keep up the good work.
Glad it’s helpful, thanks for taking the time to provide feedback 🙏
thanks, this brief introduction is awesome and clear
Best nest.js tutorial so far, subscribed bro, keep up your great work!
awesome thanks!
You are so awesome my friend, i have been working with Nestjs for sometime but still learn alot even from this Video. Very well done, you deserve my full respect and graceful
thank you so much!!
Great job. Nice tempo and explanation throughout the tutorial!
thank you!
I love this tutorial, to the point and full of basic information that useful. Thank you Pak.
thanks for the feedback, glad you like it!
I wish I could like this video more than once. Thank you so much.❤
You’re welcome!
This is prolly the best nestjs video! You're a life saver man! I gotta learn nest.js and typeorm for my internship and you've covered exactly what I wanted. Thanks a lot :) I owe u a coffee xD
haha good to hear, good luck on your internship!
Thanks man. I learnt a lot from your channel. You are a real inspiration...
Thanks bro, your channel is awesome. Keep it up.
Keep up the good work, very helpful and I like the format!
thanks Kevin!
Very well structured and explained! You're the man.
Thanks!! 💪
That was a super cool Tutorial. Thanks Marius. Really appreciate the effort you put in.
No problem glad you like it!
Amazing video, you're going to be big :)
A birds-eye view of NestJS also a crash course. Learned a lot only in an hour. I really like your videos
Thanks! Glad you got something out of it
I am glad I found your channel
Awesome crash course. Thank you.
This was very helpful. Thank you!
Making NestJS and sequelize video tutorials is definitely fun, your explanation is simple and easy to understand.
I’m glad you like the content! 🙏 thanks!
Great video brother! Really apricate you for this video!
Great video, I learn a lot from your course. Thank you so much.
You’re welcome!
Really good stuff! Help out understanding basics extremly well
Thanks! 🙌
Incredible Job ! Thanks a lot man 👍
Awesome explanation Marius.
Please keep up the good work.
Thank you Naman 🙏
Great tutorial Marius! keep it up
Thank you so much for this course. Very clear and useful for me.
Glad to help!
Amazing tutorial, thank you!
Great, man
keep posting good content like this
Thank you! I hope to produce more
nice really straight forward on point.
best nestjs video. Earned a new sub.
Thanks for the nice crash course, it makes me more confident to move Laravel to Nestjs.
An amazing explanation sir, thanks for this video
Great stuff and great format, thank you!
Glad you enjoyed it!
Ultimate explanation. Loved it!
🙌 🙌
Awesome content, thanks a lot for this. I think I have just fallen in love with NestJS. This will make building APIs a breeze! ;-)
Thanks! I’ve tried a lot of node frameworks and this is still my top choice at the moment
Thanks for your video. I learned a lot from it.
Thanks, awesome explanation🔥.
I should try nestJs for my next project.
go for it! 🚀
I was skeptical about nest. Now, after watching your video, I am going to user in my next project.
glad to hear! It’s definitely in my opinion at least worth a try, it’s bound to save you time. Specially if you want to write your server in TS, I don’t think there’s a better way (in my opinion at the moment)
Fantastic!!!
Thanks for the great crash course! Thumb and subscribed!
thank you 🙏
Best Video on Nest Js... I just started a new role on Nest and this video has given me a lot about that. I could start assuming that role confidently
Thanks Chris! Good luck on your new role!
@@mariusespejo thanks
so great, help me a lot, thank you
Really appreciate the effort
The way of explaining is superb.
Thank you!
thank you very much, you´re a nice teacher, i learned a lot with you !!!!!!!!
very good explanation, thanks alot
Great video. Good topic. Please continue.
Thanks, will do!
Great. Video. I watched it at one shot.... pretty interesting ⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️
keep spirit, thank you for teaching me.
I liked before I watched :)
well presented, thank you
A great tutorial!
Excelente información! Gracias,🤘
Tienes un nuevo suscriptor
From Perú 🤩🤩
Thank you so much sir!
damn bro, that was a nice. Thanks for the video
You're the GOAT!!!
Thanks man , good tutorial 🤝
Glad you like it Amit 🙌
Thanks helped me a lot
Worthy content ! 👍🏻
thank you 🙏
Awesome, thank you for all your video you are a great teacher
Thank you!
clean tutorial.. love your background Music ;) more content node js Express
thanks! anything specific about node/express you were looking for?
Nice tutorial 👍
This helped alot! Thank you!
glad to hear!
excellent content, bro.
17:23 i think it was a good pragmatical explanation of dependency injection, btw i think you made good decision on when not to dig a lot and recommend reading about it (being topics of their own)
I appreciate you feedback!! Yeah it’s a balance, if I go too deep right away I fear it will bore people. But also because I’d like to cover some of those topics in better detail in their own videos!
Thank you!
that was great thanks
It's really good course, Awesome!
Glad you like it!
Awesome crash course man!
Thank you!
I've learned a lot from this video, you've covered the important parts to start my own project and it is really easy to follow. One small comment from me is you speak a little slow, and personally, it makes me kind of sleepy, I just changed the speed to 1.25 and you are golden. haha! Thank you and keep it up!
Hahah thanks for honest feedback! This is one of my earlier videos and I have been trying to kinda improve pacing and tone. Definitely still trying to find that right balance.
If you get a chance to watch some of my newer stuff I hope it’s a little better lol
thank you!
Great video..
very well definitation
Good job.
Thank you for the good video
Yo man, you're a big help on my nodejs journey! thumbs up!
but just a quick question, how do you usually structure your files or folders in nestjs?
hey Mark, glad to hear that! Regarding folder structure, in Nest if you utilize the CLI to generate your files you’ll notice that files tend to revolve around modules. This generally means that things that are defined within a specific module, likely should be organized in the same folder. For example a users folder would have a users module, users controller, users service etc. So I guess you could imagine things being grouped by feature/domain if that makes sense.
I personally like to follow that convention that the CLI already promotes since I myself use the CLI often to generate new files. Hope that helps!
Nice job !
Thanks!!
Thank you so much! I'm not english native speaker, but I can understand everything you say, and that's great
Glad to hear that, thank you!
more tutorials to come!
Thank you brother for the tutorial
you’re welcome!
Thanks, that’s great, If you have time, pls make gRPC course ❤️
Thanks! :)
keep uploading on nest JS