164 Red Hat OpenShift and IBM Cloud Paks on IBM Power Systems: Volume 1
7.1  Building Cloud Native Applications on IBM Power Systems: 
Rapid development of new applications
The Red Hat OpenShift Container Platform gives developers a self-service platform on which 
to build and run containerized applications. With Red Hat OpenShift, you can quickly start 
creating cloud-native applications or cloud-enabling existing applications, and spawning an 
environment for a new microservice in minutes.
This section deploys a sample Node.js Application from github 
(https://github.com/sclorg/nodejs-ex) to count the page views, and a MongoDB database 
from the docker registry (registry.access.redhat.com/rhscl/mongodb-36-rhel7) to store the 
views count.
To run the example, complete the following steps:
1. Log in as developer, as shown in Example 7-1.
Example 7-1   Login as developer
# oc login -u developer
Authentication required for https://ocp.domain.example.com:8443 (openshift)
Username: developer
Password: 
Login successful.
You don't have any projects. You can try to create a new project, by running
    oc new-project <projectname>
2. Create the nodejs-example project, as shown in Example 7-2.
Example 7-2   Create nodejs-example project
# oc new-project nodejs-example --display-name="nodejs" --description="Sample 
Node.js Application"
Now using project "nodejs-example" on server "https://ocp.domain.example.com:8443".
You can add applications to this project with the 'new-app' command. For example, try:
    oc new-app centos/ruby-25-centos7~https://github.com/sclorg/ruby-ex.git
to build a new example application in Ruby.
# oc project nodejs-example
Already on project "nodejs-example" on server "https://ocp.domain.example.com:8443".
3. Deploy the nodejs-ex application from th e source code, as shown in Example 7-3.
Example 7-3   deploy nodejs-ex application
# oc new-app https://github.com/sclorg/nodejs-ex -l name=myapp
--> Found image e19be86 (2 months old) in image stream "openshift/nodejs" under tag "10" 
for "nodejs"
    Node.js 10.16.3 
    --------------- 
    Node.js 10.16.3 available as a container is a base platform for building and running 
various Node.js 10.16.3 applications and frameworks. Node.js is a platform built on 
Chrome's JavaScript runtime for easily building fast, scalable network applications. 
Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and