Express

The Express module acts as the webserver in the Node.js-to-AngularJS stack. Because it runs in Node.js, it is easy to configure, implement, and control. The Express module extends Node.js to provide several key components for handling web requests. It allows you to implement a running webserver in Node.js with only a few lines of code.

For example, the Express module provides the ability to easily set up destination routes (URLs) for users to connect to. It also provides great functionality in terms of working with HTTP request and response objects, including things like cookies and HTTP headers.

The following is a partial list of the valuable features of Express:

Image Route management: Express makes it easy to define routes (URL endpoints) that tie directly to the Node.js script functionality on the server.

Image Error handling: Express provides built-in error handling for “document not found” and other errors.

Image Easy integration: An Express server can easily be implemented behind an existing reverse proxy system, such as Nginx or Varnish. This allows you to easily integrate it into your existing secured system.

Image Cookies: Express provides easy cookie management.

Image Session and cache management: Express also enables session management and cache management.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset