Frontend application accessing the Cloud Native [backend](git clone https://github.com/snowdrop/cloud-native-backend.git)
- Clone the backend
- Run the backend locally according to it's instructions
$ mvn clean spring-boot:run -Dspring.profiles.active=local -Ph2
- The application will be available at
http://localhost:8090
- Create a new app on the cloud platform
oc new-app -f openshift/cloud-native-demo_frontend_template.yml
- Start the build using project's source
oc start-build cloud-native-front-s2i --from-dir=. --follow
- Wait until the pod is created and then open the app in the browser
export HOST=$(oc get route/cloud-native-front -o jsonpath='{.spec.host}')
open $HOST
During the development stage in order to get very quick feedback, the Fabric8 Maven plugin can be used to deploy the application to the cluster. The following instructions specify the details
- Run the backend on OpenShift following it's instructions
- Run this project by issuing
$ mvn clean verify fabric8:deploy -Popenshift
- The app will be available at the address returned by
$(oc get route/cloud-native-front -o jsonpath='{.spec.host}')