Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Latest commit

 

History

History
70 lines (54 loc) · 2.92 KB

README.md

File metadata and controls

70 lines (54 loc) · 2.92 KB

Deprecation Notice

This public repository is read-only and no longer maintained.


REUSE status License: Apache2 CI

scp-b1

SAP SAP

Description

This is a sample applications based on Cloud Foundry. It is coded in NodeJ and integrated with SAP Business One using the OData Services of the SAP Business One Service Layer to list Items.

This application is based in the beer-list app.

🔵 Live Version

Requirements

Deployment

Clone this repository

git clone https://github.com/SAP-Samples/scp-b1.git

From the root directory, using the Cloud Foundry CLI push your app to the SAP CP Cloud Foundry

cf push --random-route

Then set the Environment Variables accordingly

Example with your own B1

cf set-env scp-b1 B1_SERVER_ENV http://hanab1
cf set-env scp-b1 B1_SLPORT_ENV 50001
cf set-env scp-b1 B1_SLPATH_ENV /b1s/v2/      
cf set-env scp-b1 B1_USER_ENV manager
cf set-env scp-b1 B1_PASS_ENV 1234
cf set-env scp-b1 B1_COMP_ENV SBODEMOUS

Example with API Hub

cf set-env scp-b1 B1_SERVER_ENV https://sandbox.api.sap.com
cf set-env scp-b1 B1_SLPATH_ENV /sapb1/b1s/v2/     
cf set-env scp-b1 B1_COMP_ENV SBODEMOUS
cf set-env scp-b1 APIKey <Your API Key>

Restart your application (so it can read the new environment variables)

$ cf restart scp-b1

Access the app from the URL route showed in the terminal

Support and Contributions

This repository is provided "as-is". With no Warranty or support

If you have questions, please ask.

License

Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.