Creating your first Node.js application

In this recipe, you will learn how to create your first OpenShift Node.js application using the rhc command-line tool. After understanding the template application created by OpenShift, you will write a Hello World Node.js application using Node's HTTP module.

Getting ready

To complete this recipe, you will need the rhc command-line client installed on your machine. Please refer to the Installing the OpenShift rhc command-line client recipe in Chapter 1, Getting Started with OpenShift, for details. This application will consume one gear, so if you don't have an extra gear available for this recipe, use the rhc delete-app <app_name> --confirm command to delete an existing application. To run this application ...

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.