Chapter 4. Writing an Express.js Server

Plain old vanilla Node by itself is not a very good solution for creating web applications. You will have to write a heck of a lot of boilerplate code just to get off the ground. All of the pieces are there, but why go through all that trouble when somebody has already done it for us!

In this chapter:

  • I will introduce you to the Express.js web application framework
  • We will write the basic Node.js code necessary to bootstrap a server
  • We will also take a look at what's necessary to migrate to Express.js v4

What is Express.js?

As described perfectly on its home page, Express is a minimal and flexible Node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid ...

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.