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.

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 (Figure 1).

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 three parts:

  • Set up your environment and run the application locally, then build a container for the front end and deploy it to OpenShift.
  • Deploy the back end and connect it to the front end using environment variables, then add a health check.
  • Deploy a database and connect everything together, then deploy a new microservice from an existing container.

Note: See the DevNation Tech Talk OpenShift Developer Sandbox: Kicking the tires for a video guide to this deployment.

What you need to know

Note: If you are using Docker instead of Podman, you can substitute “docker” for “podman” in every command in this learning path.

What you’ll be doing

  • Setting up an environment
  • Running an application locally
  • Building a container and deploying it to Red Hat OpenShift
  • Deploying the back end and connecting it to the front end
  • Deploying a database and a microservice

How long will this lesson take?

  • Expect to take 60 to 90 minutes to complete this learning path.

Info alert: 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.