2023-04-28 - MVC


main topics


Video

MVC

UML diagram for the Task Manager:

MVC-UML.png

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.