Skip to content

Generated by launch.openshift.io

Notifications You must be signed in to change notification settings

lholmquist/try4

Repository files navigation

REST API Level 0 - Node.js Booster

Run this Booster Locally

To run this booster on your local host:

$ git clone git@github.com:lholmquist/try4

$ cd try4

$ npm start

Interact with this Booster Locally

To interact with your booster while it’s running locally, use the form at http://localhost:8080 or the curl command:

$ curl http://localhost:8080/api/greeting
{"content":"Hello, World!"}

$ curl http://localhost:8080/api/greeting?name=Sarah
{"content":"Hello, Sarah!"}

Update this Booster

To update your booster:

  1. Stop your booster.

  2. Make your change (e.g. edit public/index.html).

  3. Restart your booster.

  4. Confirm your change appears.

Run this Booster on a Single-node OpenShift Cluster

If you have a single-node OpenShift cluster, such as Minishift or the Red Hat Container Development Kit, installed and running, you can also deploy your booster there. A single-node OpenShift cluster provides you with access to a cloud environment that is similar to a production environment.

To deploy your booster to a running single-node OpenShift cluster:

$ oc login -u developer -p developer

$ oc new-project MY_PROJECT_NAME

$ npm run openshift

CI/CD Deployment

As part of the process of creating this booster, launch.openshift.io set up a project with a CI/CD deployment of this booster. You can see the status of this deployment in the OpenShift Online Web console. You can also learn more about this booster and rest of the Node.js runtime in the Node.js Runtime Guide.

About

Generated by launch.openshift.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published