How to deploy full-stack JavaScript applications in OpenShift

Red Hat OpenShift is a Kubernetes distribution that makes it easy to deploy and scale applications in the cloud. In this hands-on learning path, created by Don Schenck, you will learn how to deploy a full-stack JavaScript application in an OpenShift cluster.

Access the Developer Sandbox

Overview: How to deploy full-stack JavaScript applications in OpenShift

Red Hat OpenShift is a Kubernetes distribution that makes it easy to deploy and scale applications in the cloud. In this hands-on learning path, you will learn how to deploy a full-stack JavaScript application in an OpenShift cluster.

Starting from source code, you will take an application that runs locally and deploy it in the Developer Sandbox for Red Hat OpenShift. This lab consists of five parts:

  1. Set up your working environment for Node.js and OpenShift development.
  2. Run an application locally, then build a container for the front end, and deploy it to OpenShift.
  3. Deploy a database to OpenShift.
  4. Deploy the back end and connect it to the database and front end using environment variables, then add a health check.
  5. Deploy a new microservice from an existing image and connect all of the services using environment variables.

Prerequisites:

In this learning path, you will:

  • Verify an application by running it locally on your machine.
  • Build an image on your machine, push it to a registry, and deploy it to OpenShift.
  • Deploy an app to OpenShift from source code using Source-to-Image (S2I).
  • Use OpenShift’s built-in PostgreSQL template to get a database up and running.
  • Alter a deployment’s environment variables at the command line.
  • Deploy a service from an existing (pre-compiled) image.