Skip to content

klizarh/nodejs-rest-http

This branch is 6 commits behind nodeshift-starters/nodejs-rest-http:main.

Folders and files

NameName
Last commit message
Last commit date
Aug 16, 2022
Apr 15, 2019
Oct 3, 2022
Sep 13, 2022
Oct 3, 2022
Dec 8, 2021
Dec 8, 2021
Aug 6, 2021
Nov 26, 2020
Aug 10, 2017
Oct 3, 2022
Oct 3, 2022
Oct 3, 2022
Oct 3, 2022
Oct 10, 2022
Feb 22, 2023
Sep 13, 2022

Repository files navigation

Node.js CI codecov

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
$ 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.

About

Simple HTTP Rest example using express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.1%
  • HTML 36.9%