Controller
Tells everything where to go
Views
The DOM, what the user sees
Model
Interacts with DB
DB
Router
The Internet
(some kind of wire, I'm told)
MongoDB
Maintains Separation of Concerns, While providing interchangeability and the ability to modify one area without breaking the whole.
MVC
The Internet contains our client-side interface. The client requests something from our app.
The Router hears the request and tells the Controller
View
The Controller hears the request and updates the DOM as needed
The Model sends request to update the DB
The Controller needs to update the DB, sends request to the Model
And Finally...
What is Mongoose?
Mongoose, is a tool used to manage data and organize the data within a DB. Specifically, MongoDB.
It also uses a type of object called a "Schema", to further organize the Data. It seems to have a similar functionality as well.
Leliana Keeme, 100Devs Academy
MMXXII
By Leliana A. Keeme
Full-Stack Web Developer, PC Builder, and Professional Bodyworker