diff --git a/README.md b/README.md index d1dc890f..7aa7b7fb 100644 --- a/README.md +++ b/README.md @@ -49,19 +49,29 @@ npx cds-typer "*" cds-tsx watch ``` +#### Accessing the SAP Fiori Apps + +Open these links in your browser: +* http://localhost:4004/sap.fe.cap.travel/index.html for processing the travel data +* http://localhost:4004/sap.fe.cap.travel_analytics/index.html for the [Analytical List Page](https://ui5.sap.com/#/topic/3d33684b08ca4490b26a844b6ce19b83) (ALP) + + ### Build and Run - Java Backend In the root folder of your project, run ``` npm ci +npm run build:ui mvn spring-boot:run ``` -### Accessing the SAP Fiori Apps +> At the moment, there is no watch mode for Fiori UI changes. Run `npm run build:ui` after each change there. + +#### Accessing the SAP Fiori Apps Open these links in your browser: -* http://localhost:4004/travel_processor/webapp/index.html for processing the travel data -* http://localhost:4004/travel_analytics/webapp/index.html for the [Analytical List Page](https://ui5.sap.com/#/topic/3d33684b08ca4490b26a844b6ce19b83) (ALP) +* http://localhost:4004/travel_processor/dist/index.html for processing the travel data +* http://localhost:4004/travel_analytics/dist/index.html for the [Analytical List Page](https://ui5.sap.com/#/topic/3d33684b08ca4490b26a844b6ce19b83) (ALP) Log in with user `amy` and empty password. diff --git a/package.json b/package.json index 8b66967c..842eea74 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "scripts": { "lint": "npx eslint .", "start": "cds-serve", + "build:ui": "npm run build --prefix app/travel_analytics && npm run build --prefix app/travel_processor", "test": "jest", "test:mocha": "npx -y mocha", "travel-processor": "cds-tsx watch --open sap.fe.cap.travel/index.html?sap-ui-xx-viewCache=false", diff --git a/srv/src/main/java/com/sap/cap/sflight/ui/RedirectFilter.java b/srv/src/main/java/com/sap/cap/sflight/ui/RedirectFilter.java index 735dd750..8880f6a1 100644 --- a/srv/src/main/java/com/sap/cap/sflight/ui/RedirectFilter.java +++ b/srv/src/main/java/com/sap/cap/sflight/ui/RedirectFilter.java @@ -28,7 +28,9 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha String[] uiServicePaths = { "/travel_processor/webapp/processor", - "/travel_analytics/webapp/analytics" + "/travel_analytics/webapp/analytics", + "/travel_processor/dist/processor", + "/travel_analytics/dist/analytics" }; String path = req.getRequestURI();