Overview
You will learn
- How to develop a sample business service using CAP and
Node.js - How to define a simple data model and a service that exposes the entities you created in your data model
- How to run your service locally
- How to deploy the data model to an
SQLitedatabase - How to add custom handlers to serve requests that aren’t handled automatically
Prerequisites
- You’ve installed Node.js. Make sure you run the latest long-term support (LTS) version of Node.js with an even number like 20. Refrain from using odd versions, for which some modules with native parts will have no support and thus might even fail to install. In case of problems, see the Troubleshooting guide for CAP.
- You’ve installed the latest version of Visual Studio Code (VS Code).
- (Windows only) You’ve installed the SQLite tools for Windows. Find the steps how to install it in the How Do I Install SQLite section of the CAP documentation.
- Install the cds command line tool as described on Capire
- Install the VS-Code extensions as described on Capire
- You’ve installed an HTTP client, for example, REST client.
- If you don’t have a Cloud Foundry Trial subaccount and dev space on SAP BTP yet, create your Cloud Foundry Trial Account with US East (VA) as region and, if necessary Manage Entitlements. You need this to continue after this tutorial.
Steps
Intro
Before you start, complete the prerequisites and select your OS so that your see the correct instructions for your setup.
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.



