Nest.js Tutorial for Beginners
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
Dave!! You´ve heard my prayers!!! This is going to be AWESOME!!! Always gratefull of your work and dedication. God bless you!
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
your channel is becoming the go to place for web devs of all levels, nice stuff 🔥🔥
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.
Amazing Tutorial Mr. Dave. This tutorial series is one hell of a gem on CZcams.
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 🙏
Oh man , Dave makes you learn any thing to create your dream website , thanks Dave for every thing
This is going to be AWESOME! I hope you will make a Fullstack Tuto in the future where you combine ( Nest js + Next js) !
yes right
Yessss, we need that
why? You literally just need to call a NestJS endpoint on your NextJS client and that's it
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
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.
Waiting for so long to have a video on NestJs from you.... ❤️❤️❤️
Thanks Dave
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.
Can't wait to see the next part. Thanks for your efforts Mr. Gray
Been waiting for this course, thanks so much Dave 🤩
Thank you so much! I've been looking forward to this tutorial for a really long time.
Yesterday i was talking with friends about we would like a course of nest and here it is. THANK YOU
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 💥
Now i am going to add Nestjs to my Resume ❤
Thanks for this series. I hope this series will be more huge and long
Finally! My wait is over. Thank you Dave🙏
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.
Thanks for the Nest.js Tutorial, I love your JavaScript tutorials so much.
What a timing! I've recently started learning Nest.js! Nice!
Was waiting for you to do it. Thanks
I am really excited to learn nest from you. Thanks a lot.
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.
Dave, you read my heart.
This came at the right time. God bless you
This is the course I have been looking for thank u very much
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.
Thank you very much for your course!
Thanks alot Dave. God bless you for this
some quality stuff on youtube.
Keep it up man.
Awesome thank you Dave 👋👌👍✌️😍🫶🏻👍👏🏻✌️🤝
WOW I am waiting for this !
Hell of series... Thanks grey ❣️
AMAZING! Thanks DAVE !
Dave! thank you so much!
That tip at the end meant a lot, as I tend to be a perfectionist. Thanks, mentor :)
Thanks! I learned a lot from your channel.
Thank you for that, I really need to start with nestjs
That's amazing!!!!Looking forward to this series
Thanks a lot for this new interesting course !
Cover every topic of Nestjs In depth.
Thank you.
No way!!!!! I'll be waiting for your guards explanation
Thanks for the video
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.
You're welcome! 💯
Thank you Dave learnt a lot from u excited to learn this also❤😅
Всё круто👍🏻.
Ждём микросервисы! А ещё next js + nest js
Excellent content. I am from brazil and I learn a lot with your videos. Thanks.
Thank you Dave.
Thanks Dave ❤
Thank you very much.
Awesome tutorial 🎉🎉
Fantastic !
Dave... Sometimes I think you are secretly watching me. Because whenever I need to learn something, you are making a tutorial for it. 👌
Thanks Dave
Cheers🎉🎉🎉🎉
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.
Thanks a lot
Fullstack journey ! 🚀
im already familliar with nest and use it every day but im gonna follow the course
Thanks ❤
Lovely!
Thanks Dave
Please bring tutorials fast. You explain brilliantly
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
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! =)))
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.
And to avoid having to add `--no-spec` flag for every generated item, add `spec: false` under `generateOptions` in the `nest-cli.json`.
Great !
the best teacher will explain the best framework
Amazing
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.
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?
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.
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
Good lesson, like it! The file structure seems like Angular but the logic seems like Java.
I hope you include web sockets! in this series
great work, Nestjs is the best nodejs backend framework
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
Great 👍👍👍👍👍
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!
Prisma
@@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 ... 😔
@@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.
Expecting this from Dave. I love working with NestJs because its fast and easy in development
wowowow, unbelievable
I like Nestjs especially it's nodejs inspired by spring boot ❤
Urgent updates, looking forward to updates👀
Haha finally my work place framework tool is come .
I think of learning something and you put out a tutorial for it 😅
I hope u will be using Prisma as well
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.
In all honesty I thought it was a typo for Next... im very suprised and i like this framework
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.
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.
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?
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.
Lezzgooooo
🤩🤩🤩
This looks exact replica of Angular but for the Backend.
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
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.
❤❤❤
Hi Dave, already next.js done earlier right, what is difference this one?
A quick watch of the first few minutes will tell you the different between _Nest_ and _Next_ .
Hello Sir, can you give some tips and instructions on how to learn new technologies, programming languages or anything as efficiently as possible.
Learn just a little bit more every day. Stay consistent. It adds up.
Can you suggest some good blogs to follow? Also, any plans to continue your blog? Thanks.
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.
Hi, I was wondering, could we use the command "nest g resource [name]"?
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.
What is the name of the font you are using in Vscode? I tried finding it but had no luck.
😅
I show my font choices here: czcams.com/users/shortsf1HVI5slxms
👍👍👍
Hello Dave, I dont know anything about programing, can i start with this??
No, I suggest following my Web Dev Roadmap linked in the description of the video.
Thank you so much Mr. Dave@@DaveGrayTeachesCode