Managing Node.js application dependencies

So far in this chapter, you didn't have to use any third-party library. The applications that you developed were simple Hello World applications that didn't require any third-party library to do their work. In real applications, you have to use libraries written by others. Node makes it very easy for developers to consume third-party libraries using npm. npm is the package manager for Node.js that comes bundled with Node. It is a command-line tool that allows you to publish new modules, downloads existing modules from the npm registry, and installs third-party modules. In this recipe, you will write another simple application, but that will use the Express framework. The goal of the recipe was to introduce ...

Get OpenShift Cookbook 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.