nodeshift-archived / nodejs-configmap-redhat

This project demonstrates application and runtime configuration leveraging external configuration sources Edit Add topics
Apache License 2.0
0 stars 5 forks source link

Build Status Coverage Status Greenkeeper badge

nodejs-configmap-redhat

This project demonstrates application and runtime configuration leveraging external configuration sources

https://access.redhat.com/documentation/en-us/red_hat_build_of_node.js/

Running The Example

You can run this example as node processes on your localhost, as pods on a local minishift installation.

Localhost

To run the basic application on your local machine, just run the commands bellow:

$ npm install
$ npm start

If you want debug information, you can set DEBUG environment variable and start the application:

$ DEBUG=* npm start

This will launch the application on port 8080.

Minishift

Minishift should be started, and you should be logged in with a currently active project. Then run the npm run openshift command.

$ oc create configmap app-config --from-file=app-config.yml
$ minishift start # You may have some options here, e.g. --memory=8096 --vm-driver=virtualbox
$ oc login -u developer # Login
$ oc new-project my-example-project # Create a project to deploy to
$ npm run openshift # Deploys the example app