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
> Please note that some IDEs may interfere with their autobuild when launching the application from the CLI using Maven. Therefore, please ensure that no IDEs are running in parallel or launch the application natively from your preferred IDE as described below.
126
+
127
+
3. Use the following links in the browser to check if everything works fine:
128
+
129
+
-http://localhost:8080: This should show the automatically generated index page of served paths.
130
+
-http://localhost:8080/fiori.html: This is the actual bookshop application UI.
131
+
-http://localhost:8080/swagger/index.html: This is providing a Swagger UI for the CatalogService API.
132
+
133
+
You'll start with a predefined stock of books as this procedure starts the bookshop application with a CSV-initialized in-memory H2 database.
134
+
135
+
Two mock users are defined for local development:
136
+
- User: `user`, password: `user` to browse books
137
+
- User: `admin`, password: `admin` to manage books and orders
138
+
139
+
## Using VS Code
140
+
141
+
VS Code supports the project out-of-the-box, when using the [Extension Pack for Java](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack).
142
+
To launch the application in VS Code navigate to the `Application` class and click on `Run` or `Debug`.
122
143
123
144
## Using Eclipse
124
145
125
-
Optionally, use the following steps to import the project to Eclipse:
146
+
Use the following steps to import the project to Eclipse:
126
147
127
148
1. Import the project using **File > Import > Existing Maven Projects**.
128
149
@@ -149,30 +170,18 @@ Optionally, use the following steps to import the project to Eclipse:
149
170
150
171
Afterwards, click **Run**. This step starts the applications `main` method located in `src/main/java/my/bookshop/Application.java`.
151
172
152
-
4. Use the following links in the browser to check if everything works fine:
153
-
154
-
<http://localhost:8080/>: This should show the automatically generated index page of served paths.
155
-
<http://localhost:8080/fiori.html>: This is the actual bookshop application UI.
156
-
<http://localhost:8080/swagger/index.html>: This is providing a Swagger UI for the CatalogService API.
157
-
158
-
You'll start with a predefined stock of books as this procedure starts the bookshop application with a CSV-initialized in-memory H2 database.
159
-
160
-
Two mock users are defined for local development:
161
-
- User: `user`, password: `user` to browse books
162
-
- User: `admin`, password: `admin` to manage books and orders
163
-
164
173
## Using IntelliJ Idea (Community and Ultimate)
165
174
166
175
IntelliJ can handle the project more or less out-of-the-box. Since some of the event handlers in the project rely on
167
176
the code generated from the CDS model the build path of the project (module) needs to be extended
168
177
with the folder containing the generated code. In order to add the generated code you need to add the 'gen' folder
169
178
to the build path:
170
179
171
-
* Open the project settings.
172
-
* Navigate to the 'modules' section.
173
-
* Select the srv/src/gen folder and mark it as 'sources'.
174
-
* Save and leave the project settings.
175
-
* Trigger a rebuild.
180
+
1. Open the project settings.
181
+
2. Navigate to the 'modules' section.
182
+
3. Select the srv/src/gen folder and mark it as 'sources'.
183
+
4. Save and leave the project settings.
184
+
5. Trigger a rebuild.
176
185
177
186
After the generated code is considered by IntelliJ's build the application can be handled just as any other Spring Boot
178
187
application in IntelliJ.
@@ -217,7 +226,6 @@ Prerequisites:
217
226
> [!NOTE]
218
227
> Please note that some IDEs may interfere with their autobuild during the MTA build and thus lead to corrupt MTA build results. Therefore, please ensure that no IDEs are running in parallel with your MTA build.
219
228
220
-
221
229
Deploy as Single Tenant Application:
222
230
- Rename `mta-single-tenant.yaml` to `mta.yaml`
223
231
- Run `mbt build`
@@ -232,7 +240,7 @@ Deploy as Multitenant Application:
232
240
- Go to another subaccount in your global account, under subscriptions and subscribe to the application you deployed.
233
241
- Run `cf map-route bookshop-mt-app <YOUR DOMAIN> --hostname <SUBSCRIBER TENANT>-<ORG>-<SPACE>-bookshop-mt-app` or create and bind the route manually.
234
242
235
-
> [!NOTE]
243
+
> [!NOTE]
236
244
> Please note that the route length is limited to 63 characters and can easily be exceeded. So keeping the app name and sub-account subdomain as short as possible will help you stay within length.
237
245
238
246
Before you can access the UI using the (tenant-specific) URL to the bookshop(-mt)-app application, make sure to [Setup Authorizations in SAP Business Technology Platform](#setup-authorizations-in-sap-business-technology-platform).
0 commit comments