Advanced Web Development

Week 2: Express.js

By Eric Moynihan

MVC

a

MVC stands for Model View Controller. It's the Design Pattern used by many website backends and it's the one we will go through today.

Routing

In MVC, the controllers are responsible for routing the request to respond with the correct data from the models and views

Views

The views are used to show our backend how to output our data. There's many ways to make views but some popular technologies are pug and ejs. You can just write you views in a HTML file however and get your controller to process it.

Models

Models are essentially how we represent the data we store. They are mainly used to represent the structure of our database