-
Book Overview & Buying
-
Table Of Contents
Full-Stack React, TypeScript, and Node - Second Edition
By :
As we saw in Chapter 8, building HTTP services with Node directly is awkward and cumbersome. Having an API would make us more productive. This is what the Express framework attempts to do. In this section, we will learn what Express is and how it can help us write code more easily for our Node apps.
Express is not a standalone JavaScript server framework. It is a layer of code that sits on top of Node. Additionally, Express provides a rich ecosystem of middleware to enhance and extend Node's capabilities. Middleware consists of functions that plug into the request processing pipeline, each one able to inspect, modify, or act on the Request and Response before passing them along to the next step.
So then, what is Express? Express is an application that processes requests by using middleware. Here's a simple diagram showing the flow:

Figure 9.1 – Express Request-Response flow
Let's flesh out the process that requests...
Change the font size
Change margin width
Change background colour