Deploying Hello World on Cloud Foundry Without Any Coding

Image for post
Image for post

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.

Prerequisite

Make sure you have a trial account on Cloud Foundry. If not, get one from here.

Make sure your PC has the following installed:

  • JDK
  • Maven
  • Cloud Foundry CLI

On Windows, you can use these commands to install those softwares with Chocolatey:

Generate Project

Use this command to generate Maven project from Archtype:

Enter project information as you wish. Here is mine for your example:

groupId: me.chairat.scp.spring.hello
artifactId: hellospring
version: 1.0-SNAPSHOT (Just press ENTER)
package: me.chairat.scp.spring.hello (Just press ENTER)
uniqueHostname: hellospring-chairat

You will get a project folder with a few sub modules. Get into the folder and build it with this command:

Deploying to Cloud

Time to deploy to the cloud. Use the following set of commands:

Your application will be built, deployed, and started automatically in a while. If everything is okay, you should see this message:

Go to Cloud Cockpit and click the link to open your application.

Image for post
Image for post
Hello World Application on Cloud Foundry
Image for post
Image for post
Hello Endpoint

Hola! My next step is to play around with Jenkins.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store