Develop a Business App Using SAP Business Application Studio
January 25, 2021
Beginner
25 min.
Develop a simple CAP Node.js application using SAP Business Application Studio.
You will learn
- How to create a CAP project
- How to develop business applications based on the SAP Cloud Programming Model (CAP)
- How to run and test your application using the Run Configurations tool
Prerequisites
- You have access to SAP Business Application Studio (see Set Up SAP Business Application Studio for Development).
- You have created a dev space as described in Create a Dev Space for Business Applications.
The application you’ll develop is a simple bookshop app that consists of a data model with three entities:
- Books
- Authors
- Genres
The data model is exposed via the Catalog Service. The application has some initial data that is used for testing the application, and some custom logic that runs after reading the books from the Books
entity.
Once you have all the code in place, you will test the application locally.
Step 1: Create new CAP project
Step 2: Define bookshop data schema
Step 3: Define bookshop service
Step 4: Add initial data
Step 5: Add custom logic
Step 6: Test the application with local database