This sample compares CAP Node.js and CAP Java for a simple use case with a discount calculation based on book stock.
To start the apps, do the following:
npm install -g @sap/cds-dk
- Node.js
cd cap-node-discount
npm install
cds watch
- Open http://localhost:8080
- Java
cd cap-java-discount
cd srv
mvn cds:watch
- Open http://localhost:4004