Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.54 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.54 KB

Node.js CI Coverage Status

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 OpenShift Local installation.

Localhost

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

$ npm install
$ npm start

This will launch the application on port 8080.

Other options:

  • npm run dev same as npm start but with pretty output log.
  • npm run dev:debug shows debug information.

OpenShift Local

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

$ crc setup # Set-up the hypervisor
$ crc start # Initialize the openshift cluster
$ oc login -u developer # Login
$ oc new-project my-example-project # Create a project to deploy to
$ oc create configmap app-config --from-file=app-config.yml
$ npm run openshift # Deploys the example app

OpenTelemetry with OpenShift Distributed Tracing Platform

This link contains instructions on how to install the OpenShift Distributed Tracing Platform and enable tracing.