O'Reilly logo

Web Development with MongoDB and Node.js by Jason Krol

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required