Skip to content

This project demonstrates application and runtime configuration leveraging external configuration sources

License

Notifications You must be signed in to change notification settings

devspaces-samples/nodejs-configmap

 
 

Repository files navigation

Build Status Coverage Status Greenkeeper badge

nodejs-configmap

This project demonstrates application and runtime configuration leveraging external configuration sources

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 69.0%
  • HTML 29.3%
  • CSS 1.7%