Web Dev Roadmap for Beginners (Free!): https://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.
⭐ Become a full-stack web dev with Zero To Mastery Courses:
- The Complete Node.js Developer: https://bit.ly/CompleteNodeJS
- Advanced React: https://bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr
Subscribe https://bit.ly/3nGHmNn
Course Updates https://courses.davegray.codes/
Questions - Please post them to my Discord https://discord.gg/neKghyefqh
Buy Me A Coffee https://www.buymeacoffee.com/davegray
Follow Me On Social Media:
GitHub: https://github.com/gitdagray
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/
Source Code: https://github.com/gitdagray/nestjs-course
Playlist for this NestJS Series: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6MexSAh5x1R3rU6Mg2zYBVr
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: https://nestjs.com
Node.js Official Site: https://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