Skip to Content

Get Set to Use SAP Cloud SDK for JavaScript

test
0 %
Get Set to Use SAP Cloud SDK for JavaScript
Details
// Explore More Tutorials

Get Set to Use SAP Cloud SDK for JavaScript

05/28/2019

Set up your environment to use SAP Cloud SDK for JavaScript.

Details

You will learn

  • How to install Node.js,a JavaScript runtime for executing JavaScript code outside of a browser
  • How to install npm, the node package manager for maintaining Node.js projects and their dependencies
  • How to install cf CLI, the command line interface for interacting with Cloud Foundry

Step 1: Node.js and npm

You should have Node.js and npm installed. To see whether you already have Node.js and npm installed and check the installed version, run the following commands on the command line:

node -v
npm -v

If one of those commands fails because the command was not found you will have to install Node.js.
We recommend using at least Node.js version 11.0.0 and npm version 6.0.0.
The latest LTS version (10.15.3 as of today), will also work.
If you have Node.js and npm installed at a current version, skip ahead and mark this step as done.

Install Node.js and npm

We recommend to install Node.js using a package manager or a node version manager suitable for your platform.
You are free to use an installer, though.
npm will automatically be installed together with Node.js.
npm can be updated by running npm install -g npm from your command line.

Log on to answer question
Step 2: SAP Cloud Platform account

For deploying your application to Cloud Foundry in SAP Cloud Platform, you will need an account.
You can get a trial account here by clicking on “Start your free trial” or use an existing account, if you already have one.

Log on to answer question
Step 3: Cloud Foundry command line interface

You will need the Cloud Foundry command line interface (cf CLI) to later deploy your application to SAP Cloud Platform. To see whether it is already installed, you can run cf -v on your command line. If the command fails, you will need to install it.

You can find installation instructions for all common platforms in the Cloud Foundry documentation. Again, we recommend to use a package manager for that. If you are using chocolatey on Windows, please find the instructions here.

Log on to answer question
Step 4: Editor / IDE

Feel free to choose your favorite IDE. We recommend using Visual Studio Code for its excellent JavaScript and TypeScript support. However, this tutorial does not rely on any specific editor.

Log on to answer question

That’s it, you are now ready to start developing your own application with the SAP S/4HANA Cloud SDK for JavaScript!

Step 5: Test yourself
What is the minimum scope after successful completion of this tutorial to start developing with the SAP S/4HANA Cloud SDK for JavaScript/TypeScript?
×

This tutorial is part of a larger series.
You can find the next entry [here](Get Started with SAP Cloud SDK for JavaScript).
For questions, you can reach out to us on StackOverflow using the tag sap-cloud-sdk and on answers.sap.com using the tag SAP S/4HANA Cloud SDK.

Next Steps

Back to top