2023-04-28 - MVC
- back to Le Wagon's Bootcamp log.
- link to the lecture (in the portuguese version the interesting part starts at 32min).
main topics
- MVC
Video
- link no vídeo em português, começa nos 32min
MVC
UML diagram for the Task Manager:
Development flow
First the Model, then the Repository (abstraction layer on top of the persistence), the the View, then the Controller
Model
You should always start with your model. The most important thing in your app is your data, and using models allows you to manipulate whatever data you have.
Repository
Structure to store user's data. It's an abstraction layer on top of the persistence.
Controller
Gather data from the Repository to hand them over to the View. Also asks the view for information to get more data.
View
Responsible to interact with the user.