/cloud-cap-samples

This project contains sample applications for SAP Cloud Application Programming Model.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Welcome to cap/samples

Find here a collection of samples for the SAP Cloud Application Programming Model organized in a simplistic monorepo setup. → See Overview of contained samples

Preliminaries

  1. Install @sap/cds-dk as documented in capire
  2. Optional: Use Visual Studio Code

Download

Clone this repo as shown below, if you have git installed, otherwise download as zip file.

git clone https://github.com/sap-samples/cloud-cap-samples samples
cd samples

Setup

In the samples folder run:

npm install

Run

With that you're ready to run the samples, for example:

cds watch bookshop

After that open this link in your browser: http://localhost:4004

Testing

Run the provided tests with jest or mocha, e.g.:

npx jest

While mocha is a bit smaller and faster, jest runs tests in parallel and isolation which allows to run all tests.

Get Support

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

License

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