Views

A view is what we are referring to as an HTML page. They are called views because of the Model View Controller (MVC) design pattern. Actually, the pattern we're using is closer to that of Model, View, ViewModel (MVVM). Typically, a Model is the data that is going to be displayed on a page (again, in our case known as a ViewModel), the View is the page itself, and the Controller is the brain that communicates between the ViewModel and the View.

Our particular application is going to need two views. The first view is the home page, and the second view is the image page.

Note

The HTML in the following section relies heavily on Bootstrap, a popular HTML framework created by Twitter that provides a standard set of user interface elements. These ...

Get Web Development with MongoDB and Node.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.