18. Implementing Express in Node.js

Express provides a lightweight module that wraps the functionality of the Node.js http module in a simple-to-use interface. Express also extends the functionality of the http module by making it easy for you to handle server routes, responses, cookies, and HTTP request statuses. This chapter shows you how to implement Express as the webserver for your Node.js applications. You will learn how to configure the Express server, design routes, and utilize the Request and Response objects to send and receive HTTP requests. You will also get a look at how to implement template engines in Express.

Get Node.js, MongoDB, and AngularJS Web Development 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.