Exercise 3 - Change code, build, save and deploy the Web-App
Step 1: Open the main.js file
main.js fileecho $keycloakurl
echo $authorsurl
echo
cd $ROOT_FOLDER/web-app-cloud/src
nano main.jsStep 2: Change following source code
cd $ROOT_FOLDER/web-app-cloud/src
nano main.jslet initOptions = {
url: '[keycloakurl]/auth', realm: 'cloudnativestarter', clientId: 'frontend', onLoad: 'login-required'
}
let urls = {
api: 'http://[authorsurl]/api/v1/'
}
store.commit("setAPI", urls);Step 3: Build and save the "Web-App" container image in the IBM Cloud Container Registry
Step 4: List the container images to verify the upload.
Step 5: Apply the deployment of the Web-App
Step 6: Configure the redirect URL in Keycloak
Step 7: Open the Web-App again
Step 8: Logon as user author-cloud-native-starter and password 1234.
author-cloud-native-starter and password 1234.Last updated
