/seed-nodejs-hana

Starter project that integrates a nodejs express REST api with a SAP HANA database on SAP Cloud Platform

Primary LanguageJavaScript

seed-nodejs-hana

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

Requirements

Deploy

  • 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

Develop locally

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

Additional Tutorial

  • Though for HANA Express, this is an additional tutorial