In this section of the chapter, we will continue our exploration of modules by showing how to build a simple Node web server application. In order to accomplish this, we will make use of the ExpressJS (or simply Express) web framework for Node. Express provides us with a library of reusable Node modules to handle the basic functionality required for building a web server. This includes routing, a template engine for generating web pages, libraries for handling sessions and cookies, authentication, and error messages (think 404 errors ), to name a few. Express provides a rich set of modules and APIs to cover everything you would need for a production web server application.
Using Express with Node
Express setup
In order to...