Skip to content

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

License

Notifications You must be signed in to change notification settings

SAP-samples/cloud-cap-samples

Welcome to cap/samples

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

Get Started

Assumed you did your initial setup of CAP Node.js, simply copy & paste these lines to a terminal for a jumpstart:

git clone -q https://github.com/sap-samples/cloud-cap-samples cap/samples
cd cap/samples
npm install
npm test
npm start

After download and setup this starts the bookshop server and opens a browser window on http://localhost:4004 looking like that:

bookshop showing up in browser

Click on the /vue link at the top to display the bookshop app (when asked to log in, type alice as user and leave the password field blank).

Grow as you go...

After the jumpstart, have a look into the enclosed sub folders/projects, which are:

  • bookshop – a simplistic primer app
  • reviews - a generic reuse service
  • orders - a generic reuse service
  • common - a reuse content package
  • bookstore - a composite app of the above
  • fiori - Fiori elements UIs for the bookstore
  • etc/* - Plugins adding cross-cutting concerns
  • test - Tests for all the above

see also samples.md

Get Help

License

Copyright (c) 2022 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.