The introduction of S/4HANA Cloud SDK makes it even easier to develop cloud applications and integration with back-end SAP and cutting-edge tools and technologies like Hystrix, Docker, and Jenkins.
In this blog, I’m showing you how to deploying a Hello World application on SAP Cloud Foundry without any coding using S/4HANA Cloud SDK.
Make sure you have a trial account on Cloud Foundry. If not, get one from here.
Make sure your PC has the following installed:
- Cloud Foundry CLI
On Windows, you can use these commands to install those softwares with Chocolatey:
choco install jdk8
choco install maven
choco install cloudfoundry-cli
Use this command to generate Maven project from Archtype:
mvn archetype:generate -DarchetypeGroupId=com.sap.cloud.s4hana.archetypes -DarchetypeArtifactId=scp-cf-spring -DarchetypeVersion=LATEST
Enter project information as you wish. Here is mine for your example:
1.0-SNAPSHOT (Just press ENTER)
me.chairat.scp.spring.hello (Just press ENTER)
You will get a project folder with a few sub modules. Get into the folder and build it with this command:
mvn clean package
Deploying to Cloud
Time to deploy to the cloud. Use the following set of commands:
cf api https://api.cf.eu10.hana.ondemand.com
Your application will be built, deployed, and started automatically in a while. If everything is okay, you should see this message:
Showing health and status for app hellospring in org P1234567890trial_trial / sp
ace dev as firstname.lastname@example.org...
OKrequested state: started
usage: 512M x 1 instances
last uploaded: Wed Oct 18 14:25:51 UTC 2017
buildpack: sap_java_buildpackstate since cpu memory disk
#0 running 2017-10-18 09:26:40 PM 167.3% 350.1M of 512M 129.2M of 1G
Go to Cloud Cockpit and click the link to open your application.
Hola! My next step is to play around with Jenkins.
SAP S/4HANA Cloud SDK Developer Page
The SAP S/4HANA Cloud Software Development Toolkit enables you to build and run enterprise applications on SAP Cloud…
Step 3 with SAP S/4HANA Cloud SDK: HelloWorld on SCP CloudFoundry | SAP Blogs
The following steps will explain how to create the very first HelloWorld example on SAP Cloud Platform Cloud Foundry…
SAP S/4HANA Cloud SDK Overview
SAP S/4HANA has become de-facto ERP standard with now more than 5,800 customers worldwide. It accompanies organizations…