XSUAA
This commit is contained in:
12
db/package.json
Normal file
12
db/package.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "deploy",
|
||||
"dependencies": {
|
||||
"@sap/hdi-deploy": "^3.8.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^8"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node node_modules/@sap/hdi-deploy/deploy.js"
|
||||
}
|
||||
}
|
||||
77
mta.yaml
Normal file
77
mta.yaml
Normal file
@@ -0,0 +1,77 @@
|
||||
####### Generated mta.yaml based on template version 0.2.0
|
||||
####### appName = capire-samples
|
||||
####### language=nodejs; multiTenant=
|
||||
####### approuter=
|
||||
|
||||
_schema-version: '3.1'
|
||||
ID: sap.capire-samples
|
||||
version: 1.0.0
|
||||
description: "The umbrella project for all samples to easily setup for local development and tests."
|
||||
|
||||
build-parameters:
|
||||
before-all:
|
||||
- builder: custom
|
||||
commands:
|
||||
- npm install
|
||||
- cds build/all
|
||||
|
||||
parameters:
|
||||
enable-parallel-deployments: true
|
||||
|
||||
modules:
|
||||
############## SERVER MODULE ##########################
|
||||
- name: capire-samples-srv
|
||||
type: nodejs
|
||||
path:
|
||||
properties:
|
||||
EXIT: 1 # required by deploy.js task to terminate
|
||||
|
||||
|
||||
requires:
|
||||
#### Resources extracted from CAP configuration ####
|
||||
- name: capire-samples-db
|
||||
- name: capire-samples-uaa
|
||||
|
||||
provides:
|
||||
- name: srv-binding # required by consumers of CAP services (e.g. approuter)
|
||||
properties:
|
||||
srv-url: ${default-url}
|
||||
|
||||
############################################################
|
||||
|
||||
############## SIDECAR MODULE #########################
|
||||
- name: db
|
||||
|
||||
type: hdb
|
||||
path: gen/db
|
||||
parameters:
|
||||
app-name: capire-samples-db
|
||||
requires:
|
||||
#### Hana and xsuaa resources extracted from CAP configuration ####
|
||||
- name: capire-samples-db
|
||||
- name: capire-samples-uaa
|
||||
############################################################
|
||||
|
||||
|
||||
############## RESOURCES ##################################
|
||||
resources:
|
||||
##### Services extracted from CAP configuration ####
|
||||
##### 'service-plan' can be configured via 'cds.requires.<name>.vcap.plan'
|
||||
- name: capire-samples-db
|
||||
type: com.sap.xs.hdi-container
|
||||
|
||||
parameters:
|
||||
properties:
|
||||
hdi-service-name: ${service-name} # required for Java case
|
||||
- name: capire-samples-uaa
|
||||
|
||||
type: org.cloudfoundry.managed-service
|
||||
parameters:
|
||||
path: ./xs-security.json
|
||||
service: xsuaa
|
||||
service-plan: application
|
||||
config:
|
||||
xsappname: capire-samples-${space} # name + space dependency
|
||||
tenant-mode: dedicated
|
||||
### scopes and role templates will be added below by a developer or by CAP tools
|
||||
############################################################
|
||||
15
package.json
15
package.json
@@ -17,7 +17,8 @@
|
||||
"dependencies": {
|
||||
"@sap/cds": "latest",
|
||||
"express": "*",
|
||||
"passport": "^0.4.1"
|
||||
"passport": "^0.4.1",
|
||||
"hdb": "^0.17.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"sqlite3": "*"
|
||||
@@ -26,5 +27,15 @@
|
||||
"@types/jest": "*",
|
||||
"jest": "*"
|
||||
},
|
||||
"license": "SAP SAMPLE CODE LICENSE"
|
||||
"license": "SAP SAMPLE CODE LICENSE",
|
||||
"cds": {
|
||||
"requires": {
|
||||
"db": {
|
||||
"kind": "hana"
|
||||
},
|
||||
"uaa": {
|
||||
"kind": "xsuaa"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user