Sample application showcasing different services serving the same set of data entities from a sqlite database. The services match different use cases visualized in corresponding Fiori apps.
- get Node.js v8 or higher
- get sqlite (Windows only; pre-installed on Mac/Linux)
- npm set @sap:registry to the latest nexus snapshots:
npm set @sap:registry=http://nexus.wdf.sap.corp:8081/nexus/content/groups/build.snapshots.npm
Copy & paste this to your command line:
git clone https://github.wdf.sap.corp/caps/bookshop.git
cd bookshop
npm run setup
npm start
Open these links in your browser:
- http://localhost:4004/fiori.html – Fiori Launchpad sandbox
- http://localhost:4004/$index – generic index page
In VS Code switch to Debug view and launch the prepared cds run configuration.
Set breakpoints in one of the javascript files, e.g. srv/handlers/cat-service.js.
Edit the provided .cds
or .js
sources and restart the server (i.e. Ctrl-C, npm start
) to see the effects.
Note: re-deploy the database thru npm run deploy
in case you did changes which affect the data models or the signatures of entities exposed in the services.
- Authentication and authorization → 'auth' branch
- CF & MTA → 'cf' branch