Nest JS Basics: Modules, Controllers, Services

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.

Controllers

Controllers in the nest js are basically responsible to handle the incoming requests from the client and also return responses to them.

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.

About the Author: smartcoder

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *