3.3 KiB
3.3 KiB
Overview of Samples
The list below gives an overview of the samples provided in subdirectories. Each sub directory essentially is a individual npm package arranged in an all-in-one monorepo umbrella setup.
hello
- A simplistic Hello World service using CDS and cds.services.
bookshop
- Getting Started with CAP, briefly introducing:
- Project Setup and Layouts
- Domain Modelling
- Defining Services
- Generic Providers
- Adding Custom Logic
- Using Databases
common
- Showcases how to extend @sap/cds/common thereby covering...
- Building extension packages
- Providing reuse packages
- Verticalization
- Using Aspects
- Used in the fiori app sample
orders
- Adds orders to the bookshop, thereby demonstrating...
- Using Compositions in Domain Models, along with
- Serving deeply nested documents
reviews
- Shows how to implement a modular service to manage product reviews, including...
- Serving requests synchronously
- Emitting events asynchronously
- As well as managed data, input validations and authorization
reviewed
- Enhances bookshop with reviews, thereby showcasing...
- Consuming other services synchronously
- As well as asynchronously, subscribing to events
- Grow as you go, with...
- Mocking app services
- Running service meshes
- Late-cut Micro Services
fiori
- Adds a Fiori elements application, introducing to...
- OData Annotations in
.cdsfiles - Support for Fiori Draft
- Support for Value Helps
- Serving Fiori apps locally
- Combining most of the other samples through package reuse
All-in-one Monorepo
Each sample sub directory essentially is a standard npm package, some with standard npm dependencies to other samples. The root folder's package.json has local links to the sub folders, such that an npm install populates a local node_modules folder acts like a local npm registry to the individual sample packages.