Quick Start
Create Your First App
You can choose between JavaScript
and Java
when developing with the SAP Cloud SDK.
Check these two examples to initialize an application for your favorite development environment.
- JavaScript
- Java
Prerequisites
Make sure you have the latest stable version of Node.js and npm
installed.
This example assumes you're running macOS or Linux.
Check out our detailed getting started guide for more information.
$ npm install -g @sap-cloud-sdk/cli
$ sap-cloud-sdk init my-sdk-project
+---------------------------------------------------------------+
| ✅ Init finished successfully. |
| |
| 🚀 Next steps: |
| - Run the application locally (`npm run start:dev`) |
| - Deploy your application (`npm run deploy`) |
| |
| 🔨 Consider setting up Jenkins to continuously build your app |
| Use `sap-cloud-sdk add-cx-server` to create the setup script |
+---------------------------------------------------------------+
Prerequisites
Make sure your have Java 8 and maven installed. This example assumes you're running macOS or Linux. Check our detailed getting started guide for more information.
$ mvn archetype:generate "-DarchetypeGroupId=com.sap.cloud.sdk.archetypes"\
"-DarchetypeArtifactId=scp-cf-tomee" "-DarchetypeVersion=RELEASE"
Hello, World!
This example is not a classical Hello World
.
There is much more to it than just bootstrapping a starter application.
The SAP Cloud SDK is a complex and flexible library addressing a vast range of use-cases.
Each of them would require a Hello World
of its own, and we have them!
To continue discovering the SAP Cloud SDK for your favorite programming language check the respective getting started guides and comprehensive tutorials for multiple use cases.
note
There is no full feature parity between JavaScript and Java libraries. Please, review the respective documentation sections to find out more.
Getting Started - JavaScript
- A comprehensive getting started guide for JavaScript developers
- Tutorials covering SAP Cloud SDK for JavaScript on the SAP Developers portal
Getting Started - Java
- A comprehensive getting started guide for Java developers
- Tutorials covering SAP Cloud SDK for Java on the SAP Developers portal
Mock and Test Servers for OData and SAP S/4HANA
- We created a service that mocks SAP S/4HANA Business Partner service. You can host it on your own machine to practice with the SAP Cloud SDK.
- TripPin reference service used in official OData v4 documentation to provide tutorials and learning materials.
- Northwind reference service has a complex data model allowing to try out advanced OData v4 features with the SAP Cloud SDK.