Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Latest commit

History

History

bookshop

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

readme.md

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