Compare commits

...

8 Commits

Author SHA1 Message Date
i048695
f00e484dfc update npmrc
npm.sap.com is deprecated
2021-04-19 10:04:34 +02:00
Offer Shostak
aaafe52b01 Support NODE 14
When trying to executing the exercise in this branch:
https://github.com/SAP-samples/cloud-cap-samples/tree/CAA265-node-initial
On machine with NODE 14 it failed.
When bumping sqlite3 to 5.0.0 it works OK.

Regards,
Offer.
2021-02-17 14:52:38 +01:00
D065023
9591866112 version 2019-10-25 09:53:31 +02:00
johannes-vogel
e84792f122 Update README.md 2019-09-23 14:13:55 +02:00
d045778
2fc2cea260 add sap registry to npmrc 2019-09-23 13:06:09 +02:00
johannes-vogel
bfaaf36e14 Fix Key in Products 2019-09-22 13:32:18 +02:00
johannes-vogel
33b24c8d96 Use version 3.17.4 (#1) 2019-09-21 11:36:45 +02:00
i079695
387b25b1bf Add initial branch for CAA265 2019-09-11 11:07:11 +02:00
6 changed files with 10 additions and 62 deletions

View File

@@ -1,58 +1,3 @@
# cloud-cap-samples
This is a monorepository for sample projects on [SAP Cloud Application Programming Model](https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/00823f91779d4d42aa29a498e0535cdf.html?q=cloud%20application%20programming%20model).
## Description
This repository provides a list of samples and reusable packages created based on SAP Cloud Application Programming Model.
The SAP Cloud Application Programming Model enables you to quickly create business applications by allowing you to focus on your domain logic. It offers a consistent end-to-end programming model that includes languages, libraries and APIs tailored for full-stack development on SAP Cloud Platform.
The samples provided can be run in a local setup on SQLite Database.
#### Samples:
* [bookstore](./packages/bookstore) - A variant of the bookshop application, built in a modular fashion on top of products-service and common reuse packages.
* [products-service](./packages/products-service) - A reuse package providing domain models and services to manage product catalogs.
## Requirements
* [Node.js](https://nodejs.org/en/) v8 or higher
* [Git](https://git-scm.com)
* [SQLite DB](https://www.sqlite.org/download.html) (Windows only; pre-installed on Mac/Linux)
#### Optional (if you want to import the code into an editor)
* [VS Code](https://code.visualstudio.com)
* [Add CDS extension to VS](https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/be944d6d51f343f6b3f53c29c44ff00a.html)
## Download and Installation
#### Clone and build the application
`git clone https://github.com/SAP-samples/cloud-cap-samples.git`
`cd samples`
`npm install`
#### Run the samples
`npm run <sample name>`
## Limitations
None
## Known Issues
None
## How to obtain support
In case you find a bug, or you need additional support, please open an issue [here](https://github.wdf.sap.corp/staging-for-SAP-samples-public/cloud-cap-samples/issues) in GitHub.
## To-Do (upcoming changes)
None
## License
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under SAP Sample Code License Agreement, except as noted otherwise in the [LICENSE](/LICENSE) file.
# Initial branch for CAA265 - Rapid Service Development with SAP Cloud Application Programming Model
**DO NOT MERGE IN MASTER**

3
packages/.cdsrc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"cds_version": "^3.17.4"
}

View File

@@ -8,8 +8,7 @@
"node": "^8.9"
},
"dependencies": {
"@sap/cds": "^3.16.3",
"@sap/cds-rest": "latest",
"@sap/cds": "^3.17.4",
"express": "^4.17.1"
},
"scripts": {

View File

@@ -3,6 +3,7 @@ namespace sap.capire.products;
using { Currency, cuid, managed, sap.common.CodeList } from '@sap/cds/common';
entity Products : cuid, managed {
key ID : String(36);
title : localized String(111);
descr : localized String(1111);
stock : Integer;

View File

@@ -5,7 +5,7 @@
"repository": "https://github.wdf.sap.corp/caps/products-service.git",
"license": "ISC",
"dependencies": {
"@sap/cds": "^3.16.3",
"@sap/cds": "^3.17.4",
"express": "^4.17.1"
},
"files": [

View File

@@ -2,10 +2,10 @@
"name": "dev-env",
"author": "daniel.hutzel@sap.com",
"dependencies": {
"@sap/cds": "^3.16.3"
"@sap/cds": "^3.17.4"
},
"devDependencies": {
"sqlite3": "^4.0.7"
"sqlite3": "5.0.0"
},
"license": "ISC"
}