# Welcome to cap/samples
Find here a collection of samples for the [SAP Cloud Application Programming Model](https://cap.cloud.sap) organized in a simplistic [monorepo setup](samples.md#all-in-one-monorepo).
[See **Overview** of contained samples](samples.md):
![](etc/samples.drawio.svg)
![](https://github.com/SAP-samples/cloud-cap-samples/workflows/CI/badge.svg)
[![REUSE status](https://api.reuse.software/badge/github.com/SAP-samples/cloud-cap-samples)](https://api.reuse.software/info/github.com/SAP-samples/cloud-cap-samples)
### Preliminaries
1. Ensure you have the latest LTS version of Node.js installed (see [Getting Started](https://cap.cloud.sap/docs/get-started/))
2. Install [**@sap/cds-dk**](https://cap.cloud.sap/docs/get-started/) globally:
```sh
npm i -g @sap/cds-dk
```
3. _Optional:_ [Use Visual Studio Code](https://cap.cloud.sap/docs/get-started/tools#vscode)
### Download
If you've [Git](https://git-scm.com/downloads) installed, clone this repo as shown below, otherwise [download as ZIP file](archive/main.zip).
```sh
git clone https://github.com/sap-samples/cloud-cap-samples samples
cd samples
```
### Setup
In the samples folder run:
```sh
npm install
```
### Run
With that you're ready to run the samples, for example:
```sh
cds watch bookshop
```
After that open this link in your browser: [http://localhost:4004](http://localhost:4004)
When asked to log in, type `alice` as user and leave the password field blank, which is the [default user](https://cap.cloud.sap/docs/node.js/authentication#mocked).
### Testing
Run the provided tests with [_jest_](http://jestjs.io) or [_mocha_](http://mochajs.org), for example:
```sh
npx jest
```
> While mocha is a bit smaller and faster, jest runs tests in parallel and isolation, which allows to run all tests.
## Code Tours
Take one of the [guided tours](.tours) in VS Code through our CAP samples and learn which CAP features are showcased by the different parts of the repository. Just install the [CodeTour extension](https://marketplace.visualstudio.com/items?itemName=vsls-contrib.codetour) for VS Code. We'll add more code tours in the future. Stay tuned!
## Get Support
Check out the documentation at [https://cap.cloud.sap](https://cap.cloud.sap). <br>
In case you've a question, find a bug, or otherwise need support, use our [community](https://answers.sap.com/tags/9f13aee1-834c-4105-8e43-ee442775e5ce) to get more visibility.
## License
Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, version 2.0 except as noted otherwise in the [LICENSE](LICENSE) file.
没有合适的资源?快使用搜索试试~ 我知道了~
This project contains sample applications for SAP Cloud Ap.zip
共149个文件
cds:35个
js:33个
json:24个
需积分: 5 0 下载量 92 浏览量
2024-02-04
16:53:33
上传
评论
收藏 156KB ZIP 举报
温馨提示
This project contains sample applications for SAP Cloud Ap
资源推荐
资源详情
资源评论
收起资源包目录
This project contains sample applications for SAP Cloud Ap.zip (149个子文件)
common.cds 7KB
fiori.cds 3KB
fiori-service.cds 2KB
index.cds 2KB
fiori-service.cds 1KB
fiori-service.cds 1KB
reviews-service.cds 1KB
mashup.cds 938B
schema.cds 910B
schema.cds 905B
schema.cds 715B
data-service.cds 588B
cat-service.cds 579B
common.cds 472B
loggers.cds 383B
index.cds 343B
services.cds 332B
index.cds 305B
services.cds 294B
fiori-service.cds 275B
user-service.cds 272B
data-model.cds 222B
admin-service.cds 205B
index.cds 185B
media-service.cds 161B
index.cds 136B
orders-service.cds 126B
genres.cds 125B
index.cds 87B
world.cds 77B
index.cds 66B
dummy.cds 64B
index.cds 64B
index.cds 32B
index.cds 26B
sap.capire.reviews-Reviews.csv 3KB
sap.capire.bookshop-Books.csv 3KB
sap.capire.bookshop-Books.texts.csv 2KB
sap.common-Currencies.csv 529B
sap.common-Currencies_texts.csv 509B
sap.common-Countries_texts.csv 478B
sap.common-Countries.csv 427B
sap.capire.bookshop-Authors.csv 410B
sap.capire.bookshop-GenreHierarchy.csv 386B
sap.capire.orders-Orders.Items.csv 330B
sap.capire.bookshop-Genres.csv 243B
sap.capire.orders-Orders.csv 230B
sap.common-Languages_texts.csv 150B
sap.common-Languages.csv 63B
dep5 2KB
.env 64B
.env 62B
.eslintrc 579B
.gitignore 256B
index.html 4KB
loggers.html 3KB
index.html 3KB
index.html 2KB
index.html 1KB
fiori-apps.html 963B
requests.http 5KB
requests.http 2KB
genres.http 998B
media.http 862B
requests.http 402B
test.http 48B
cds.ql.test.js 25KB
app.js 4KB
odata.test.js 4KB
consuming-services.test.js 3KB
services.test.js 3KB
app.js 3KB
messaging.test.js 3KB
data-service.js 2KB
hierarchical-data.test.js 2KB
mashup.js 2KB
app.js 2KB
loggers.js 2KB
reviews-service.js 2KB
media-service.js 2KB
orders-service.js 1KB
cat-service.js 1KB
fiori.test.js 852B
custom-handlers.test.js 670B
init.js 658B
hello-world.test.js 649B
server.js 472B
server.js 453B
hello-world-test.js 443B
admin-service.js 419B
swagger-ui.js 369B
user-service.js 366B
Component.js 208B
Component.js 201B
Component.js 200B
Component.js 199B
Component.js 183B
world.js 160B
index.js 92B
package-lock.json 126KB
共 149 条
- 1
- 2
资源评论
码农阿豪
- 粉丝: 1w+
- 资源: 1750
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功