Dev Spaces and Project Wizard
As mentioned earlier, we want to use SAP Business Application Studio (BAS) as development environment to create CAP applications for the Node.js runtime. BAS provides the benefit that everything we need for development is available out-of-the-box. For example, Node.js as well as CAP's CDS development kit is already installed ready to use.
Watch the video to learn about creating dev spaces and generating CAP projects in order to develop applications using BAS.
Command Line Interface
CAP projects can also be created with the npm package @sap/cds-dk. This package contains the command line client and development toolkit for CAP.
@sap/cds-dk is available out-of-the-box in BAS. Corresponding commands can be entered directly in a terminal in BAS. To open a new terminal, select Terminal → New Terminal from the hamburger menu in the upper left corner of BAS.
@sap/cds-dk provides commands for various stages of CAP development, from initializing new projects to deploying them to the cloud. Use cds help to get an overview of all commands. Use cds help <command> or cds <command> ? to get specific help. With cds init a new CAP project can be generated.