Skip to content

qmacro/bookshop-demo

 
 

Repository files navigation

Bookshop Sample App

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.

Preliminaries

  • 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

Setup

Copy & paste this to your command line:

git clone https://github.wdf.sap.corp/caps/bookshop.git
cd bookshop
npm run setup

Run

npm start

Test

Open these links in your browser:

Debug

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.

Develop

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.

Issues?

cap/issues

More Features?

About

Simple CDS bookshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.9%
  • HTML 19.1%