Chapter 12Architecture of an Express Application

In the previous chapter, we generated our first Express application. At the time of writing, Express was in version 4 so that’s the version this book will be discussing. The Express generator gives developers a great place to start building a new web server. It provides a few simple routes, Jade templating integration, cookie and body parsing, and static file serving. In this chapter, we’ll cover the important files and concepts of the generated Express application. This will give you a strong understanding of the architecture of the Express ecosystem, as well as the interactions in many of the framework’s moving parts.

Starting the Server

The first thing you’ll probably notice is that if you run ...

Get Full Stack JavaScript Development With MEAN 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.