This repository contains the security sample application for the units 5 and 6 of week 5 in the openSAP course SAP Cloud Platform Essentials (Update Q3/2017).
Follow the instructions below to install the application on your local development system and deploy it in your SAP Cloud Platform Neo trial account.
- You have Maven and npm installed
- Run
npm config set @sap:registry="https://npm.sap.com"
- You have the Cloud Foundry CLI (Command Line Interface) installed and your SAP CP trial account enabled for the CF environment
-
Building the application
- Edit the file /manifest.yml and search/replace the string 123456 with a random 6-digit number of your choice
- Go to the root directory (/) and run
mvn clean install
- Go to the /web directory and run
npm install
- Check if you the deployable web archive file
/target/CFSecTest.war
has been created
-
Deploy the application
- Go to the root (/) of the application source directory
- Run
cf api https://api.cf.eu10.hana.ondemand.com
(replace eu10 with us10 if your are in region US East) - Run
cf login
and authenticate with your SAP CP trial user and password - Run
cf create-service xsuaa application java-uaa -c xs-security.json
- Run
cf push
- Run
cf map-route opensap-approuter cfapps.eu10.hana.ondemand.com -n p0123456789trial-opensap123456-approuter
. In this command, replace 123456 with the 6-digit number you chose in step 1.1, and replace p0123456789trial with your trial account name