In this exercise, we will look at the steps required to deploy the application to the SAP Business Technology Platform.
-
🔨 Please follow this tutorial to create a destination in your BTP Trial account cockpit with the following details:
Name: SFSF-BASIC-ADMIN Type: HTTP Url: https://apisalesdemo8.successfactors.com/ Proxy Type: Internet Authentication: BasicAuthentication User: <username-supplied-in-the-session> Password: <password-supplied-in-the-session>
-
🔨 Also, create a destination for the
Registration-Service
service with the following details:Name: Registration-Service Type: HTTP Url: https://ad266-registration.cfapps.eu10-004.hana.ondemand.com/ Proxy Type: Internet Authentication: NoAuthentication
Navigate to the Service Marketplace
in your BTP Trial account cockpit and find the Destination
service and click on it.
-
🔨 Click on
Create
to create a new instance of the service. Enter anInstance Name
of your choice, everything else can be left as default. Click onCreate
to create the instance.
The created instance will be listed in the Instances and Subscriptions
tab.
-
🔨 Open the
manifest.yml
file and edit the following lines and save the changes:-# services: -# - destination-service + services: + - <your-destination-service-instance-name>
We will use the CF CLI
to deploy the application.
-
🔨 Login into your BTP Trial account CF space by using the following command in your IDE's terminal:
cf login -a API-URL -u USERNAME -p PASSWORD
where
API-URL
is the API endpoint of your BTP Trial account, you can see it in the Overview page andUSERNAME
andPASSWORD
are the credentials you use to log in to your BTP Trial account cockpit. -
🔨 Navigate to the project's root folder (
teched2023-AD266
)- Run
mvn package
from the root folder to build your project. - Once the build finishes successfully, run
cf push
to deploy the application to your BTP Trial account. - The url of the deployed application will be displayed in your terminal under
routes
section.
- Run
-
🔨 Once the application is deployed successfully, you can test the application by navigating to the in your browser. You should see a screen like this:
You can test the application by clicking on the buttons available.
- 🔨 To see the goals created in SuccessFactors, log in to SuccessFactors with USER and PASSWORD provided and check if the goal with your chosen <DEMO_ID> (defined in
Helper
) and sub-goal have been created for the user.
You've now successfully deployed your application to BTP CF and tested it.
Continue to - Share your feedback