Node JS – Model View Controller (MVC)

1. Introduction
2. What is the MVC?
Separation of Concerns
Models-> Objetcs or Heart of the project , Responsible to ‘Represent your data in your code’ , work with your data (e.g. save , fetch)
Views-> What the users sees

Controllers-> Connecting your Models and your Views (So controller is a middle man)
Contains the “in-between logic”
Split across Middleware Functions
3. Adding Controllers
4. Finishing the Controllers
5. Adding a Product Model
6. Storing Data in Files Via the Model
7. Fetching Data from Files Via the Model
8. Refactoring the File Storage Code
9. Wrap Up
10. Useful Resources & Links

Leave a Reply

Your email address will not be published. Required fields are marked *