SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Set up a self-contained development environment for CAP Node.js

Use the power of containers and build a portable and abstracted development environment without committing to installing and maintaining tools directly on your own machine.

Overview

🎓 beginner 10 min. SAP Cloud Application Programming ModelSAP Business Technology PlatformCloudBeginner

You will learn

  • How to use a development container in VS Code
  • What GitHub Codespaces are and how they can be useful
DJ Adams D DJ Adams August 4, 2026
Created by July 30, 2026
Contributors

Prerequisites

Prerequisites

  • Either: VS Code installed, with the Dev Containers extension, and also a container manager installed, such as Docker Desktop or Podman
  • Or: a free GitHub account (to use Codespaces), and a modern Web browser

Steps

Intro

One thing that’s consistent about software development over the recent decades … is change. Different tools, editors and command line facilities come along with new approaches, frameworks and techniques. Today, the pace of that change is only increasing, and as developers we are required to work out what tools we need, install them, keep them up to date and prevent them from clashing with each other or with existing software we have on our machines.

One solution to all those challenges is development containers, and in this tutorial you’ll use a development container definition to get the perfect setup for CAP Node.js development with no effort and no footprint left on your machine. All you need are some basic building blocks - VS Code and a container runtime such as Docker Desktop or Podman. We’ll call that Option 1. What’s more, you can even avoid installing anything on your machine, and just use GitHub’s Codespaces instead. We’ll call that Option 2.

There’s a bonus advantage of going with one of these container-based options: the command line environment you will have is the same as the environment that exists in pretty much all cloud scenarios - generally, a Unix style operating system with a Unix style shell, and specifically, a Linux distribution with a Bash shell.

Of course, if you prefer to continue to manage your own developer tools installation on your own machine at the native OS level, that’s also perfectly fine. Let’s call that Option 0 :-).

Regardless of which option you choose, we recommend you still read through all the steps in this tutorial, to answer to question at the end.


Step 1 Explore the CAP Node.js dev env repository

The repository at https://github.com/SAP-samples/cap-nodejs-dev-env contains a dev container definition, which consists of two files:

  • A container image definition in the form of a Dockerfile
  • A dev container description, which points to the container image definition, and also specifies which extensions to add to VS Code (this includes the SAP CDS Language Support extension) plus which ports to publish from the container to the host
Step 2 Option 1 - with VS Code and a container manager
+
Step 3 Option 2 - with GitHub Codespaces
+
Step 4 Check the CDS development kit version
+
Step 5 Remove unwanted files
+
Step 6 Wrap-up and further info
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Explore the CAP Node.js dev env repository 2. Option 1 - with VS Code and a container manager 3. Option 2 - with GitHub Codespaces 4. Check the CDS development kit version 5. Remove unwanted files 6. Wrap-up and further info

Learn more →