MVC Framework for Nodejs

MVC architecture in simple words

  • Model : The part of our application that will deal with the database or any data-related functionality.
  • View : Everything the user will see. Basically the pages that we’re going to send to the client.
  • Controller : The logic of our site, and the glue between models and views. Here we call our models to get the data, then we put that data on our views to be sent to the users.
7 Likes

Another article which helps in understanding about MVC and its file Structure for Nodejs

image

Source : https://www.geeksforgeeks.org/model-view-controllermvc-architecture-for-node-applications/

1 Like