https://github.com/bugbiteme/web-nodejs
web-nodejs front end for coolstore app in OpenShift
https://github.com/bugbiteme/web-nodejs
Last synced: about 1 year ago
JSON representation
web-nodejs front end for coolstore app in OpenShift
- Host: GitHub
- URL: https://github.com/bugbiteme/web-nodejs
- Owner: bugbiteme
- Created: 2018-05-20T22:41:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-21T22:22:50.000Z (about 8 years ago)
- Last Synced: 2025-01-31T12:36:13.020Z (over 1 year ago)
- Language: JavaScript
- Size: 820 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web-nodejs
This is the web UI front-end to the coolstore application.
It is written in Node.js and AngularJS
Please be sure you have deployed the required microservices before launching the Web UI:
1. [https://github.com/bugbiteme/catalog-spring-boot](https://github.com/bugbiteme/catalog-spring-boot)
2. [https://github.com/bugbiteme/inventory-wildfly-swarm](https://github.com/bugbiteme/inventory-wildfly-swarm)
3. [https://github.com/bugbiteme/gateway-vertx](https://github.com/bugbiteme/gateway-vertx)
## Deploy web-nodejs to OpenShift
First, make sure you are in the coolstore project:
`$ oc project coolstore`
Use the OpenShift CLI command to create a new build and deployment for the Web component:
`oc new-app nodejs~https://github.com/bugbiteme/web-nodejs.git --name=web`
A build gets created and starts building the Node.js Web UI container image. You can see the build logs using OpenShift Web Console or OpenShift CLI:
`oc logs -f bc/web`
In order to access the Web UI from outside (e.g. from a browser), it needs to get added to the load balancer. Run the following command to add the Web UI service to the built-in HAProxy load balancer in OpenShift.
~~~~
oc expose svc/web
oc get route web
~~~~
Point your browser at the Web UI route url. You should be able to see the CoolStore with all products and their inventory status.

Original source: [http://guides-cdk-roadshow.b9ad.pro-us-east-1.openshiftapps.com/index.html#/workshop/roadshow/module/nodejs]()