Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
33535いいね 1,078,477 views回再生

MVC Explained in 4 Minutes

MVC is the most popular architecture for building complex web servers. It is used by many frameworks, and implemented into nearly every modern web application. In this video I will cover what MVC is, how it works, and why you should use it.

MVC stands for Model, View, Controller. It is used to define how these three different entities can interact with each other.

The Controller handles user requests and delegates information between the Model and the View. It only deals with requests, and never handles data or presentation.

The Model handles data validation, logic, and persistence. It interacts directly with the database to handle the data. The Controller will get all of its data information by asking the Model about the data.

The View handles presenting the information. It will usually render dynamic HTML pages based on the data the model fetches. The Controller is responsible for passing that data between the Model and View, so that the Model and View never have to interact with each other.

Previous Video:
   • What is REST?  

Next Video:
   • Project Setup - Node.js/Express/MongoDB Co...  

Playlist:
   • Full Stack Web Development Course  


Twitter:
  / devsimplified  

GitHub:
https://github.com/WebDevSimplified

CodePen:
https://codepen.io/WebDevSimplified


#MVC #WebDevelopment #ModelViewController

コメント