{"id":18045426,"url":"https://github.com/lance/cb-booster-test","last_synced_at":"2025-04-05T03:41:59.365Z","repository":{"id":66679302,"uuid":"102782380","full_name":"lance/cb-booster-test","owner":"lance","description":"Generated by launch.openshift.io","archived":false,"fork":false,"pushed_at":"2017-09-07T20:25:23.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T11:48:48.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lance.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-07T20:25:19.000Z","updated_at":"2017-09-07T20:25:24.000Z","dependencies_parsed_at":"2023-04-13T11:03:27.034Z","dependency_job_id":null,"html_url":"https://github.com/lance/cb-booster-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fcb-booster-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fcb-booster-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fcb-booster-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fcb-booster-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lance","download_url":"https://codeload.github.com/lance/cb-booster-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284914,"owners_count":20913691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T18:13:12.408Z","updated_at":"2025-04-05T03:41:59.335Z","avatar_url":"https://github.com/lance.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Circuit Breaker - Node.js Booster\n\nIMPORTANT: This runs best when deployed to OpenShift in order to use the circuit breaker functionality. For more details on using this booster with a single-node OpenShift cluster, CI/CD deployments, as well as the rest of the runtime, see the link:${guideURL}[Node.js Runtime Guide].\n\n${cicdSection}\n\n== Run this Booster on a Single-node OpenShift Cluster\nIf you have a single-node OpenShift cluster, such as Minishift or the Red Hat Container Development Kit, link:http://appdev.openshift.io/docs/minishift-installation.html[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.\n\nTo deploy your booster to a running single-node OpenShift cluster:\n\n. Log in and create your project.\n+\n[source,bash,options=\"nowrap\",subs=\"attributes+\"]\n----\n$ ${gitCMD}\n\n$ cd cb-booster-test\n\n$ oc login -u developer -p developer\n\n$ oc new-project MY_PROJECT_NAME\n\n$ ${OSORunCMD}\n----\n\n\n== Interact with this Booster on a Single-node OpenShift Cluster\n\nTo interact with your booster while it's running on a Single-node OpenShift Cluster, you first need to obtain it's URL:\n\n[source,bash,options=\"nowrap\",subs=\"attributes+\"]\n----\n$ oc get route ${greeting-app-name} -o jsonpath={$.spec.host}\n\n${greeting-app-name}-MY_PROJECT_NAME.LOCAL_OPENSHIFT_HOSTNAME\n\n$ oc get route ${name-app-name} -o jsonpath={$.spec.host}\n\n${name-app-name}-MY_PROJECT_NAME.LOCAL_OPENSHIFT_HOSTNAME\n----\n\n\nYou can use the form at your application's url or you can use the `curl` command:\n\n\n[source,bash,options=\"nowrap\",subs=\"attributes+\"]\n----\n$ curl http://${greeting-app-name}-MY_PROJECT_NAME.LOCAL_OPENSHIFT_HOSTNAME/api/greeting\n{\"content\":\"Hello, World!\"}\n\n$ curl -X PUT -H \"Content-Type: application/json\" -d '{\"state\": \"fail\"}' http://${name-app-name}-MY_PROJECT_NAME.LOCAL_OPENSHIFT_HOSTNAME/api/state\n\n$ curl http://${greeting-app-name}-MY_PROJECT_NAME.LOCAL_OPENSHIFT_HOSTNAME/api/greeting\n{\"content\":\"Hello, Fallback!\"}\n\n$ curl -X PUT -H \"Content-Type: application/json\" -d '{\"state\": \"ok\"}' http://${name-app-name}-MY_PROJECT_NAME.LOCAL_OPENSHIFT_HOSTNAME/api/state\n\n$ curl http://${greeting-app-name}-MY_PROJECT_NAME.LOCAL_OPENSHIFT_HOSTNAME/api/greeting\n{\"content\":\"Hello, World!\"}\n----\n\n== More Information\nYou can learn more about this booster and rest of the Node.js runtime in the link:${guideURL}[Node.js Runtime Guide].","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Fcb-booster-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flance%2Fcb-booster-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Fcb-booster-test/lists"}