2020-03-20 12:43:13 +01:00
2020-02-06 08:27:57 +00:00
2020-01-31 15:59:43 +01:00
2020-03-20 12:43:13 +01:00
2020-01-04 07:27:19 +01:00
2019-09-06 12:16:54 +02:00
2020-01-14 14:55:36 +01:00
2019-10-24 12:03:37 +02:00
2019-09-06 13:56:54 +05:30
2020-02-03 10:30:28 +01:00
2019-09-06 13:56:54 +05:30
2020-02-06 08:27:57 +00:00
2020-02-06 14:36:07 +01:00

cloud-cap-samples

This is a monorepository for sample projects on SAP Cloud Application Programming Model.

Description

This repository provides a list of samples and reusable packages created based on SAP Cloud Application Programming Model. The SAP Cloud Application Programming Model enables you to quickly create business applications by allowing you to focus on your domain logic. It offers a consistent end-to-end programming model that includes languages, libraries and APIs tailored for full-stack development on SAP Cloud Platform.

The samples provided can be run in a local setup on SQLite Database.

Requirements

Optional (if you want to import the code into an editor)

Download and Installation

Install cds development kit

# `@sap`-scoped packages are set via .npmrc
npm install -g @sap/cds-dk
cds  #> test-run it

Got issues? Check out the documentation.

Install passport for the usage of XSUAA

npm i -g lerna  
lerna clean -y
rm -rf ../../node_modules
lerna bootstrap --hoist

Create xs-security.json

cds compile srv/ --to xsuaa > xs-security.json

There is a known encoding issue when using Windows Powershell, please have a look at the CAP documentation.

Deploy to Cloud Foundry

Please see the description of branch week3-unit4

Clone and build the application

git clone https://github.com/SAP-samples/cloud-cap-samples samples && cd samples && npm i

Run the samples

With that you're ready to run the samples, e.g. start the bookshop sample as follows:

npm run bookshop

Test

For example, try these links in your browser:

Debug

For example, in VS Code switch to Debug view and launch one of the prepared cds run launch configurations.

Limitations

None

Known Issues

None

How to obtain support

Check out the documentation on https://cap.cloud.sap. In case you find a bug, or you need additional support, please open an issue here in GitHub.

To-Do (upcoming changes)

None

License

Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under SAP Sample Code License Agreement, except as noted otherwise in the LICENSE file.

Description
This project contains sample applications for SAP Cloud Application Programming Model.
Readme Apache-2.0 10 MiB
Languages
JavaScript 64.7%
CAP CDS 23.6%
HTML 11.7%