Files
cloud-cap-samples/bookshop
Eric Peairs f8252207a0 Fix: adjust IDs and size of Genre objects for testing
Changed ID values of Genre objects to UUIDs and decreased depth of the POSTed Genre object to match the maximum depth of DELETE
2025-06-24 14:51:25 +02:00
..
2025-04-02 13:00:32 +02:00
2025-03-21 09:48:11 +01:00

Bookshop Getting Started Sample

This stand-alone sample introduces the essential tasks in the development of CAP-based services as also covered in the Getting Started guide in capire.

Hypothetical Use Cases

  1. Build a service that allows to browse Books and Authors.
  2. Books have assigned Genres, which are organized hierarchically.
  3. All users may browse books without login.
  4. All entries are maintained by Administrators.
  5. End users may order books (the actual order mgmt being out of scope).

Running the Sample

npm run watch

Content & Best Practices

Links to capire Sample files / folders
Project Setup & Layouts ./
Domain Modeling with CDS ./db/schema.cds
Defining Services ./srv/*.cds
Single-purposed Services ./srv/*.cds
Providing & Consuming Providers http://localhost:4004
Using Databases ./db/data/*.csv
Adding Custom Logic ./srv/*.js
Adding Tests ./test
Sharing for Reuse ./index.cds