We make a number of wonderful resources avaiable at https://developers.redhat.com and the starting point for this post is to get you started with the Red Hat Container Development Kit or CDK for short.
The CDK runs on a number of Operating Systems, so getting it up and running is fairly straightforward when you follow our instructions here.
Once you have the CDK up and running, have a look at this article: https://developers.redhat.com/articles/cdk-nodejs-openshift-web-console/
I think a really clever solution to being able to use routes without a local DNS (or continuously shuffling about /etc/hosts) is the use of xip.io and nip.io!
Those DNS servers are configured in a way that will always return the IP of your local OpenShift instance by simply prepending its current address to the domain name. For example, if your cluster is currently running with an IP of 192.168.3.99, and your application is called hello-world:
$ host hello-world.192.168.3.99.nip.io hello-world.192.168.3.99.nip.io has address 192.168.3.99 $ host hello-world.192.168.3.99.xip.io hello-world.192.168.3.99.xip.io has address 192.168.3.99
Both CDK and Minishift use xip.io by default, but if yours isn't for some reason, the setting called routing-suffix can be used to control this:
$ cdk config get routing-suffix 192.168.3.99.xip.io