In part 1, I set the scene, introducing Node.js, the server-side JavaScript runtime. I also introduced the main character: Express.
You saw that Express has four major features:
The next four chapters will delve into each of these features in depth:
Chapter 4 will talk about middleware, perhaps the most important core feature of the framework. Almost every piece of the Express stack is influenced by middleware in some respect, so this is a critical chapter.
Chapter 5 discusses routing, the mechanism by which URLs are mapped to JavaScript functions. The basics of routing are simple, but there’s a lot more in the Express routing system that can come in handy. We’ll explore all of that in chapter 5.
The next chapter ties both of these together and shows how to build an API with Express. You’ll build a web server that deals purely in JSON. No HTML, no other files—just JSON. You’ll make heavy use of routing and middleware, so chapter 6 will apply what you just learned.
Chapter 7, the final part of the Core section, shows Express’s view feature. Dynamically rendered HTML is a big part of many web applications, and you’ll see how to do it.
This section serves to take your conceptual knowledge and deepen it. Let’s dig in!