Welcome to the Part 3 of NestJS Basics.
In the previous post, we covered the key concept of Controllers in NestJS. The specific topics are as follows:
Create a simple NestJS Controller
Introduction to classes and decorators
The role of request and response objects
Registering controllers
In the end, we were able to expose a very simple RESTful API interface from our application.
If you haven’t gone through it yet, you can check out the post on NestJS Controllers below:
Time to move forward now!
In this post, we are going to take another big step forward and understand the role of Providers in NestJS.
The Plan
Here are the things we will cover in this post.
Dependency Injection with Providers
Creating a brand-new new service using a NestJS provider
Injecting the Service or the Provider into the Controller
Registering the provider within the application context
Testing the GET, POST, PUT, DELETE operations
How does the Nest IOC Container Work?
Want to learn NestJS but haven't joined ProgressiveCoder's paid subscription yet?
Don't delay, click the link below and join now to gain instant access to the course and unlock exclusive content and support.