NestJS Fundamentals - Providers tutorial
Vložit
- čas přidán 26. 07. 2024
- Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
This NestJS Fundamentals tutorial covers Providers and gives an example of how to create a service. After creating the service, we will use dependency injection to inject the service into our NestJS controller.
💖 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 Providers Tutorial for Beginners - Series Part 3
(00:00) Intro
(00:05) Welcome
(00:26) Starter Code
(00:45) Quick Review & Lesson Goals
(02:22) What are NestJS Providers?
(03:19) Create the Service Class
(12:59) Dependency Injection & the Constructor
(16:04) Update the Controller
(20:29) Test the Endpoints
📚 Tutorial References:
🔗 NestJS Official Site: nestjs.com
🔗 Node.js Official Site: nodejs.org
Was this NestJS Providers tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.
#nestjs #provider #tutorial
Thank you Dave for simplifying Nest to bit. God bless you for all you do sir 🙏
I'm a senior programmer and still learning from these tutorials. Thanks Dave!
Glad I could help!
Super clear! Thanks for the effort you put in this tutorials
You're very welcome!
mr. gray, thank you so much for providing such high quality free content for everyone. You've helped me understand everything I know about javascript, node.js and react. Currently, I am still a student, but I will be forever grateful for your amazing work. I am studying nestjs through the docs for a project and I got surprised when I saw that you started a new series. Anyways, thank you so much!
Thanks Dave. Can't wait for next videos❤
Awesome series so far! 🤘
this is well cool,
so nice to see such clean code and explanations
Thank you so much for this tutorial! I love it
Thank you so much, sir, for this Nest.js series. You explain everything in a very simple way. I have a request: if possible, could you build a project in upcoming videos, like a blog app or something similar? This would help us understand best practices and how things work in Nest.js
Thanks Dave, only one thing, I had to tweak the update decorator a little bit within the decorator, cause it wouldn't update, it returned the same unchanged user. I'll leave it below in case anyone gets the same trouble
const user = this.users.find((user) => user.id === id);
if (user) {
Object.assign(user, updatedUser);
}
return user;
Thanks for all ❤
Thanks for the series.
Thank you for the support!
Thank you
Would be interesting to see explanation of solid patterns in context of NestJS, how to handle business errors with filters, business logic only in services etc.
can't wait for upcoming tutorial❤ Please also cover authentication, authorization, session, auth etc
Auth is a big topic. Might make another good short playlist on its own.
@@DaveGrayTeachesCode The series is still going, If possible add that too or make another series.
Thanks
Cool 👍
Thanks Dave! Great video,Will there be a playlist for nest js microservice implementation?
Maybe a separate playlist from this one. Focused on the basics & a REST API here.
Thanks❤ I always want learn nest.js.But I can't find good resources. I hope this course will be perject.
Thankssss Dave!! This is great! Is it going to be a long course, like Nodejs Course? Thanks a lot!
Not too long.
I do not care for the length of the tutorial, although I really care for your wellbeing. I'm just trying to say that whatever length of videos this needs to be in order to be in the same standard of quality as the others, while still maintaining your wellbeing, I'm down for it 😊. I love you man
I really love your videos,I was just wondering what your plan for this video series is, I mean, just showing the capabilities of nest.js or making a project with it?
Thank you! The goal is to build a full functioning Rest API with standard features. Not a deep dive but not glossing over everything either. Foundational knowledge.
i'm looking for part4 sir this is so good for beginner !
Coming soon
waiting
@@DaveGrayTeachesCode
Splitting hairs, but why iterate all users to update one user. You're doing a findOne at the end anyway. Cheers. Great stuff.
When the next chapter coming?
I'm on an internship and now learning backend. I started from you but after today I'll have search some other channel because you haven't uploaded the whole course. Please release videos as soon as possible. I'm heavily relying on you.
Are you planning to cover microservices?
Maybe a separate playlist from this one. Focused on the basics & a REST API here.
Hello Dear Dave ,
Huge thanks for your videos ,
I asked you before in comments in another videos , but I think you were busy , couldn't see that.
in node , I encounter a problem in mongo dB part that I can't connect it together cause some factor are deprecated .
❤❤❤
It could be a good discussion on my Discord. Link to join is in the description of each video.
Hi Dave, just a question, how the data of a new user persist between request ? If i do findAll after created a new user, it appears and i need to understand how please
A new user is added to the users array property with .push() in this example. This part isn't specific to NestJS. I recommend my JavaScript playlist before learning a framework.
Thank you