Creating an Express Web Server Using Node.js

The best way to use Node.js as the web server for your AngularJS development is to utilize the Express module. Node.js is a very modular platform, meaning that Node.js itself provides a very efficient and extensible framework and external modules are utilized for much of the needed functionality. Consequently, Node.js provides a very nice interface to add and manage these external modules.

Express is one of these modules. The Express module provides a simple-to-implement web server with a robust feature set, such as static files, routes, cookies, request parsing, and error handling.

The simplest way to explain Node.js modules and Express is to simply have you build your own web server using Node.js ...

Get Learning AngularJS 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.