Nest JS is an amazing backend framework that runs on top of the express js. Adding more features and structure to the express js framework. Let’s learn the basics of Nest JS. And get some idea about the modules, controllers, and providers/services in the nest JS framework.
Modules
Modules basically help us to break our app into smaller components.
- Read more: Create a new Module in Nest JS
Controllers
Controllers in the nest js are basically responsible to handle the incoming requests from the client and also return responses to them.
- Read More: Nest JS: Create a new Controller
Providers / Services
Providers in Nest JS also known as services are basically responsible for executing the business logic. In the Nest JS Service we use @Injectable decorator for the purpose of dependency injection.
- Read More: Nest JS: Create a new Provider / Service