* Remove OData v2 show case: Genres TreeView * Refactored bookstore and fiori services: consolidate routing and remove deprecated files * Add Jest configuration file with silent mode enabled * Refactor test files: streamline imports and remove redundant code * Change price field type to Price for better clarity and precision * Example for separation of concerns: access-control.cds
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
- Build a service that allows to browse Books and Authors.
- Books have assigned Genres, which are organized hierarchically.
- All users may browse books without login.
- All entries are maintained by Administrators.
- 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 |