Local development setup of SAP Cloud Application Programming Model

0
976

Dear SAPLearners, in this blog post we will learn local development setup of SAP Cloud Application Programming Model (CAP).

Cloud Application Programming (CAP)

As per CAP documentation,

The SAP Cloud Application Programming Model is a framework of languageslibraries, and tools for building enterprise-grade services and applications. It guides developers along a ‘golden path’ of proven best practices and a great wealth of out-of-the-box solutions to recurring tasks. For more details check the documentation.

cap

CAP offers two development frameworks through which we can develop CAP applications and they are

SAP Cloud Application Programming Model Framework Languages

In this blog post we will focus on local CAP development setup based on Node.js. Lets get started

Step-by-Step Procedure

1. Firstly, download and install NodeJS and NPM on you local windows machine. You find the Node Js installation steps here.

2. Install the command line client and development toolkit for the SAP Cloud Application Programming Model (CAP) by running the following command in the terminal.

npm i -g @sap/cds-dk

3. To verify the installation, run the following command

cds
SAP Cloud Application Programming Model Local Installation Step1

CAP by default uses SQLite database to store the data.

Install SQLite

4. Secondly, download the latest precompiled binaries from Windows section of SQLite from here.

SAP Cloud Application Programming Model Local Installation Step2

5. Create a new folder and extract the files from the zipped file.

SAP Cloud Application Programming Model Local Installation Step3

6. Add folder path to system environment PATH variable.

SAP Cloud Application Programming Model Local Installation Step4

7. Finally go to the terminal and run following command.

sqlite3

8. You should the version and other information like below.

SAP Cloud Application Programming Model Local Installation Step5

Conclusion

Congrats!! you have successfully learnt the steps for local development setup of SAP Cloud Application Programming Model.