Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

nodeshift-archived/nodejs-configmap-redhat

Repository files navigation

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

About

This project demonstrates application and runtime configuration leveraging external configuration sources Edit Add topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published