-
Notifications
You must be signed in to change notification settings - Fork 3
MVC
stackerdude edited this page Apr 9, 2019
·
2 revisions
The Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components are built to handle specific development aspects of an application. MVC is one of the most frequently used industry-standard web development framework to create scalable and extensible projects.
-
Model: a data and business logic.
-
View: a User Interface.
-
Controller: a request handler (interacts with the View and retrieves data from the model)
In the context of LevelUp:
MVC | LevelUp equivalent | Example path |
---|---|---|
Model | Javascript files | client/src/js/pages/{PAGE NAME}Page/{FILE NAME}.js |
View | Handlebar files | client/src/js/pages/{PAGE NAME}Page/{FILE NAME}.hbs |
Controller | Routes file | client/src/js/routes.js |
You can also use StorageHub to hold additional data - please refer here for a tutorial on home to use StorageHub.