This article will guide you through creating and deploying your first project on Red Hat OpenShift Container Platform, which is running inside the Red Hat CDK/minishift virtual machine. The project is a Node.js "Hello, World" application that displays the current hit count. A MongoDB database is used to store the hit count. Two pods will be created to run the application, one for the Node.js application and another for the database.
Let's list out our current available projects (those that we have at least view access for):
$ oc get projects
If this is our rst login and no one has added us to any existing projects, there shouldn't be any projects listed. Let's create a project (allowed by self-provisioner role to all authenticated users, in the default Openshift policy installation).
$ oc new-project myproject --display-name='My Project' --description='cool project owned by myuser'
Now using project "myproject" on server "https://openshift.example.com:443". To build a new example applicatin on Ruby you can add applications to this project with the 'new-app' command. For example, try:
oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git