Personally, we are fans of TypeScript
and recommend using it for most applications. However, we also offer a version of our application scaffolding for plain JavaScript
. If a step in a tutorial contains instructions or code that is specific to TypeScript
or JavaScript
, you can toggle between whatever you prefer at the top of each step.
The main differences you will notice between TypeScript
and JavaScript
are the type annotations and module definitions - ES6 modules in TypeScript
vs. commonJS
modules in JavaScript
. To migrate a TypeScript
file to JavaScript
, you only need to change the file extension from .ts
to .js
, remove all type annotations and change the import
s and export
s.
To create an Express.js
application that already contains all the files and configuration you need to use the SAP Cloud SDK for JavaScript, simply clone our TypeScript scaffolding application as follows.
git clone --single-branch --branch scaffolding-ts --origin scaffolding https://github.com/SAP/cloud-s4-sdk-examples.git <path/to/your/project>
To create an Express.js
application that already contains all the files and configuration you need to use the SAP Cloud SDK for JavaScript, simply clone our JavaScript scaffolding application as follows.
git clone --single-branch --branch scaffolding-js --origin scaffolding https://github.com/SAP/cloud-s4-sdk-examples.git <path/to/your/project>
and enter the freshly cloned project:
cd <path/to/your/project>