SAP-samples/cap-local-development-workshop
A reCAP 2025 workshop touring CAP's local-development toolset in seven exercises: cds watch, SQLite, configuration profiles, mocking, local messaging and monorepos, ending with remote debugging.
Seven exercises work through the local-development features a CAP developer reaches for day to day: cds watch and SQLite with initial and sample data, configuration profiles and the cds REPL, mocking authentication and required services, file-based local messaging, and workspaces and monorepos, ending with debugging a remote server from a local one. Prerequisites run through either a dev-container setup or an existing CAP Node.js 9.0.0+ install, plus a BTP trial subaccount with Cloud Foundry for the last exercise. It names further topics — hybrid testing, linting, cds init and cds add, serving UIs — and leaves them to Capire rather than an exercise.
Facts
Where it sits
Who is behind it
In the atlas: maintains 222@SAP-samplesmaintainerDJ AdamsContributes to this
Developer Advocate
In the atlas: contributes to 20, wrote 22@qmacro1 contributor
What it declares
Every artifact
- Type
- Sample
- Origin
- By SAP
As a sample
- Form
- Workshop or CodeJam material
Connections
Running the whole stack on a laptop against real bindings
Download
README
quoted from SAP-samples/cap-local-development-workshop under Apache-2.0, readCAP local development workshop
Description
The content of this repository is for use in a reCAP 2025 hands-on workshop:
Title: Stay cool, stay local.
Abstract: CAP has myriad features to help developers develop. And that means local first, in a tight feedback loop. In this session you'll learn about those features and tools at your disposal as a CAP developer (predominantly Node.js) and get the chance to try some of them out yourself.
Prerequisites
To participate in this workshop, the following prerequisites are required:
Ideally:
- The following installed on your laptop:
- VS Code
- Docker Desktop (or equivalent container runtime engine)
- the Dev Containers extension installed in VS Code
- git (to be able to clone a repository from GitHub)
Alternatively:
Your own development environment for CAP Node.js already set up and working, with CAP Node.js 9.0.0+ installed and a Bash-compatible shell (e.g. via WSL on Windows), plus jq and curl installed.
In both cases:
- An active trial account on SAP Business Technology Platform, with a Cloud Foundry environment instance (see this tutorial for details) - this will be needed for the last exercise, and we may be able to supply temporary access for participants
Exercises
Work through each of the following exercises one at a time, each of which cover one or more topics that are relevant for local development (and are shown in brackets following the exercise titles). When reading through the exercises, actions for you to take, things you have to do yourself, are indicated with the 👉 symbol.
- 00 - setting up and getting to a running server (cds watch)
- 01 - cds watch, SQLite, initial data and sample data (cds watch, SQLite, initial data)
- 02 - configuration profiles, more on initial data, and the cds REPL (configuration profiles, initial data, cds REPL)
- 03 - mocking auth and required services (mock user authentication, mocking of required services)
- 04 - a first look at local messaging and events (local messaging, file-based messaging)
- 05 - workspaces, monorepos and more on messaging and events (workspaces and monorepos, plugins, file-based messaging)
- 06 - debugging local and remote servers (debugging remote applications)
Other topics
There are other topics in Capire that also are relevant for local development, but not covered in this workshop (except in passing):
How to obtain support
Support for the content in this repository is available during the actual time of the workshop event for which this content has been designed.
License
Copyright (c) 2025 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.
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Flavors
“as a CAP developer (predominantly Node.js)” — SAP-samples/cap-local-development-workshop — README
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-samples-cap-local-development-workshop- JSON
- /artifacts/sap-samples-cap-local-development-workshop.json
- MCP
- Connecting an agent