You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ A Fiori UI is added using predefined SAP Fiori elements templates. **[Fiori anno
38
38
39
39
## Demonstrated Features
40
40
41
-
Framework and Infrastructure-related Features:
41
+
Framework and Infrastructurerelated Features:
42
42
43
43
-[Application configuration](https://cap.cloud.sap/docs/java/development#application-configuration) for Spring and CDS using [application.yaml](srv/src/main/resources/application.yaml)
44
44
-[Mocking users](/srv/src/main/resources/application.yaml) for local development
@@ -72,11 +72,11 @@ User Interface related Features:
72
72
73
73
CDS Maven Plugin Features:
74
74
75
-
- Install [Node.js](srv/pom.xml#L87) in the specified version
76
-
- Install the latest version of [@sap/cds-dk](srv/pom.xml#L97)
-[Generate](srv/pom.xml#L122) Java POJOs for type-safe access to the CDS model.
79
+
-[Clean](srv/pom.xml#L80) project from artifacts of the previous build.
80
80
81
81
# Getting Started
82
82
@@ -133,9 +133,9 @@ Optionally, use the following steps to import the project to Eclipse:
133
133
4. Use the following links in the browser to check if everything works fine:
134
134
135
135
<http://localhost:8080/>: This should show the automatically generated index page of served paths.
136
-
<http://localhost:8080/fiori.html>: This is the actual bookshop application UI
136
+
<http://localhost:8080/fiori.html>: This is the actual bookshop application UI.
137
137
138
-
You'll start with an empty stock of books as this procedure starts the bookshop application with an empty in-memory sqlite database.
138
+
You'll start with an empty stock of books as this procedure starts the bookshop application with an empty in-memory SQLite database.
139
139
140
140
Two mock users are defined for local development:
141
141
- User: `user`, password: `user` to browse books
@@ -153,14 +153,14 @@ The application comes with three predefined profiles: `default`, `sqlite`, and `
153
153
This database needs to be created first, to ensure it’s initialized with the correct schema and with the CSV-based example data.
154
154
To initialize the database, simply run `cds deploy --to sql:sqlite.db --no-save` from the project's root directory. Repeat this step, once you make changes to the CDS model.
155
155
156
-
- When deploying the application to the CloudFoundry, the CF Java Buildpack automatically configures the `cloud` Spring profile.
157
-
This profile doesn’t specify any datasource location. In that case CAP Java can automatically detect HANA service bindings available in the environment.
156
+
- When deploying the application to Cloud Foundry, the CF Java Buildpack automatically configures the `cloud` Spring profile.
157
+
This profile doesn’t specify any datasource location. In that case CAP Java can automatically detect SAP HANA service bindings available in the environment.
158
158
159
159
## Using a File-Based SQLite Database
160
160
161
-
To switch from the default in-memory SQLite database to a file-based SQLite database in this sample application perform the following steps:
161
+
To switch from the default in-memory SQLite database to a file-based SQLite database in this sample application, perform the following steps:
162
162
163
-
1. Deploy the example data stored in .csv files in the folder ``db/data`` to a file-based SQLite database by executing the command-line utility
163
+
1. Deploy the example data stored in .csv files in the folder `db/data` to a file-based SQLite database by executing the command-line utility
164
164
165
165
```cds deploy --to sql:sqlite.db --no-save```
166
166
@@ -170,27 +170,27 @@ To switch from the default in-memory SQLite database to a file-based SQLite data
170
170
171
171
## Deploy to SAP Cloud Platform
172
172
173
-
CAP Java applications can be deployed to the SAP Cloud Platform either in single tenant or in multitenancy mode (see[Multitenancy in CAP Java](https://cap.cloud.sap/docs/java/multitenancy) for more information.
173
+
CAP Java applications can be deployed to the SAP Cloud Platform either in single tenant or in multitenancy mode. See[Multitenancy in CAP Java](https://cap.cloud.sap/docs/java/multitenancy) for more information.
174
174
175
175
Prerequisites:
176
-
- Install the [Cloud MTA Build Tool](https://sap.github.io/cloud-mta-build-tool/): `npm install -g mbt
177
-
- Install the [Cloud Foundry Command Line Interface](https://docs.cloudfoundry.org/cf-cli/install-go-cli.html)
178
-
- Get a SAP Cloud Platform account to deploy the services and applications
176
+
- Install the [Cloud MTA Build Tool](https://sap.github.io/cloud-mta-build-tool/): `npm install -g mbt`.
177
+
- Install the [Cloud Foundry Command Line Interface](https://docs.cloudfoundry.org/cf-cli/install-go-cli.html).
178
+
- Get an SAP Cloud Platform account to deploy the services and applications.
179
179
180
-
Deploy as Single Tenant Application
180
+
Deploy as Single Tenant Application:
181
181
- Rename `mta-single-tenant.yaml` to `mta.yaml`
182
182
- Run `mbt build`
183
183
- Run `cf login`
184
184
- Run `cf deploy mta_archives/bookshop-java-public_1.0.0.mtar`
185
185
186
186
Deploy as Multitenant Application:
187
-
- Create a SAP HANA Cloud Instance in your SAP Cloud Platform space
187
+
- Create an SAP HANA Cloud Instance in your SAP Cloud Platform space.
188
188
- Rename `mta-multi-tenant.yaml` to `mta.yaml`
189
189
- Run `mbt build`
190
190
- Run `cf login`
191
191
- Run `cf deploy mta_archives/bookshop-java-public_1.0.0.mtar`
192
-
- Go to another subaccount in your global account, under subscriptions and subscribe to the application you deployed
193
-
- Run `cf map-route bookshop-java-public-approuter <YOUR DOMAIN> --hostname <SUBSCRIBER TENANT>-<ORG>-<SPACE>-bookshop-java-public-approuter` or create and bind the route manually
192
+
- Go to another subaccount in your global account, under subscriptions and subscribe to the application you deployed.
193
+
- Run `cf map-route bookshop-java-public-approuter <YOUR DOMAIN> --hostname <SUBSCRIBER TENANT>-<ORG>-<SPACE>-bookshop-java-public-approuter` or create and bind the route manually.
0 commit comments