Skip to content

Model View Controller

Sharina Stubbs edited this page Jan 21, 2020 · 1 revision

Model

  • data + DBs

Controller

  • at routes, what data (from Model layer) should go to user and how should it be displayed (which view).

View

  • Templates (front end stuff)
  • what the user sees.

A controller receives a request, gets data from the model, then renders the data using the view, to then send to the user the response.

The MVC lives in the server.

Clone this wiki locally