Difficulty: beginner
Estimated Time: 10-15 minutes


Learn how to use the OpenShift Do (odo) command line tool to build and deploy applications on OpenShift.


  • odo developer tool abstracts deployment tasks
  • OpenShift Projects and Applications
  • OpenShift Web Console’s Developer Perspective
  • Multi-tiered applications with a web frontend
  • Automatic OpenShift Builds for iterative development

Use case

Odo is a developer-centric tool for building and running software on OpenShift. Odo streamlines common build and deployment tasks to let you focus on your application’s source code. You can use odo to reduce the cognitive load and rote steps of building components, linking them together, and routing traffic to them on the OpenShift Container Platform.

This OpenShift cluster will self-destruct in one hour.

Congratulations! You just learned the basics of using the odo tool to manage application components on the OpenShift Container Platform.

What's next?

We hope odo helps you conveniently access all the power OpenShift has to offer, and that these first steps leave you eager to learn more. https://learn.openshift.com has other tutorials from basic to advanced that offer a real cluster to learn on, just like this scenario. It's also easy to run your own OpenShift cluster locally or to leave infrastructure management to Red Hat experts by using a hosted OpenShift.

Here are some of the ways you can get your own OpenShift cluster:

CodeReady Containers

CodeReady Containers brings a minimal, preconfigured OpenShift 4.x cluster to your local laptop or desktop computer for development and testing purposes. CodeReady Containers is delivered as a Red Hat Enterprise Linux virtual machine that supports native hypervisors for Linux, macOS, and Windows 10. Follow the Getting Started Guide to set up CodeReady Ready Containers.

OpenShift Online

The OpenShift team provides a hosted, managed environment that frees developers from worrying about infrastructure. OpenShift Online includes a free Starter tier for developing and testing applications on OpenShift. OpenShift Online Pro provides scalability for production deployments at competitive monthly rates in a multi-tenant environment. Find details about OpenShift Online, and sign up for free, at https://www.openshift.com/pricing/.

OpenShift Dedicated

For the highest production requirements, Red Hat hosts and manages dedicated OpenShift instances available only to your organization. OpenShift Dedicated is ideal for larger teams that want the scale and velocity benefits of container cluster orchestration without having to sweat the details of deploying and maintaining secure, reliable infrastructure. To find out more, visit https://www.openshift.com/dedicated/.

Developing with odo

Step 1 of 7

Application Overview

The application you will be deploying is a wild west shooter style game.

Applications are often divided into components based on a logical division of labor. For example, an application might consist of a data-storage, backend component that performs the application's primary work and stores the results. The backend component is paired with a user interface, frontend component that accesses the backend to retrieve data and displays it to a user.

The application deployed in this tutorial consists of two such components.


The backend is a Java Spring Boot application. It performs queries against the Kubernetes and OpenShift REST APIs to retrieve a list of the resource objects that were created when you deployed the application. Then, it returns details about these resource objects to the frontend.


The frontend is the user interface for a wild west style game written in Node.js. It displays popup images which you can shoot, corresponding to the resource objects returned by the backend.