add changes for fiori service deployment

This commit is contained in:
Vladislav Leonkev
2025-01-21 12:20:59 +01:00
parent 6dacb9cfa2
commit 13af32a865
5 changed files with 38 additions and 18 deletions

View File

@@ -1 +0,0 @@
using from '../../fiori/app/services.cds';

View File

@@ -2,10 +2,18 @@
"name": "@capire/fiori", "name": "@capire/fiori",
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"@capire/bookshop": "*",
"@capire/reviews": "*",
"@capire/orders": "*",
"@capire/common": "*",
"@capire/data-viewer": "*",
"@capire/bookstore": "*", "@capire/bookstore": "*",
"@sap-cloud-sdk/http-client": "^3.24.0",
"@sap-cloud-sdk/resilience": "^3.24.0",
"@sap/cds": ">=5", "@sap/cds": ">=5",
"@cap-js-community/odata-v2-adapter": "^1", "@cap-js-community/odata-v2-adapter": "^1",
"express": "^4.17.1" "express": "^4.17.1",
"@cap-js/hana": "^1"
}, },
"devDependencies": { "devDependencies": {
"@cap-js/sqlite": "^1" "@cap-js/sqlite": "^1"
@@ -18,25 +26,36 @@
"requires": { "requires": {
"ReviewsService": { "ReviewsService": {
"kind": "odata", "kind": "odata",
"model": "@capire/reviews" "model": "@capire/reviews",
"[production]": {
"credentials": {
"destination": "reviews-dest",
"path": "/reviews"
}
}
}, },
"OrdersService": { "OrdersService": {
"kind": "odata", "kind": "odata",
"model": "@capire/orders" "model": "@capire/orders",
},
"messaging": {
"[production]": { "[production]": {
"kind": "enterprise-messaging" "credentials": {
}, "destination": "orders-dest",
"[development]": { "path": "/odata/v4/orders"
"kind": "file-based-messaging" }
},
"[hybrid]": {
"kind": "enterprise-messaging-shared"
} }
}, },
"db": { "[production]": {
"kind": "sql" "auth": "xsuaa",
"db": "hana",
"messaging": "enterprise-messaging"
},
"[development]": {
"db": "sql",
"messaging": "file-based-messaging"
},
"[hybrid]": {
"db": "hana",
"messaging": "enterprise-messaging-shared"
}, },
"db-ext": { "db-ext": {
"[development]": { "[development]": {

1
fiori/server.js Normal file
View File

@@ -0,0 +1 @@
require('@capire/bookstore/server')

0
fiori/srv/.gitkeep Normal file
View File

View File

@@ -12,7 +12,8 @@ build-parameters:
- npx cds build --for hana --production --ws - npx cds build --for hana --production --ws
- npx cds build ./orders --for nodejs --production --ws-pack - npx cds build ./orders --for nodejs --production --ws-pack
- npx cds build ./reviews --for nodejs --production --ws-pack - npx cds build ./reviews --for nodejs --production --ws-pack
- npx cds build ./bookstore --for nodejs --production --ws-pack - npx cds build ./fiori --for nodejs --production --ws-pack
modules: modules:
- name: orders-srv - name: orders-srv
type: nodejs type: nodejs
@@ -54,9 +55,9 @@ modules:
- name: samples-db - name: samples-db
- name: samples-auth - name: samples-auth
- name: bookstore-srv - name: fiori-srv
type: nodejs type: nodejs
path: bookstore/gen/srv path: fiori/gen/srv
parameters: parameters:
buildpack: nodejs_buildpack buildpack: nodejs_buildpack
readiness-health-check-type: http readiness-health-check-type: http