Deploys an expressjs based REST API to SAP Cloud Platform. A seed project to start SAP HANA API development locally or in SAP Business Application Studio
-
An account on SAP Cloud Platform Free Trial available for up to 90 days
-
An enterprise instance of the SAP HANA Database service
-
The seed-hdi project deployed and running
-
The Cloud Foundry cli for local development
-
Setup SAP Business Application Studio for online development
- Make sure you are logged into your SAP Cloud Platform space by running
./cf-login.sh
- The script assumes your platform credentials are available as environment variables. Place in ${HOME}/.profile or **${HOME}/.bashrc
export CP_USER=i111222
export CP_PASSWORD=SapCloudPlatformPassword
-
Adjust the org and space values for your account
-
Create and deploy the express api with
./cf-seed-nodejs-hana.sh
npm install
./local-run.sh
- This script will query SAP Cloud Platform for the credentials to HDI HANA database and save them in default-services.json. The
Do no check default-services.json into source control. This file has access credentials and is used for local development only
- Though for HANA Express, this is an additional tutorial