Model view controller is the pattern where any web app show to the client in HTML, CSS & JS format. It separates an application into three interconnection components: the model, the view, and the controller.
Controller – The controller is the endpoint where the request is received. The controller acts as an intermediary between the model and the view. t receives user input and updates the model accordingly. It then uses the view to render the updated data to the user.
Model – The model represents the data and business logic of your application. In NestJS, you can define your models using TypeScript classes and decorators. These models typically represent the database schema or other data sources.
View – The view represents the user interface of your application. All HTML template files and the data received from the model are shown in the view.
