Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Running various samples requires access to the Kyma environment. There are also
| Name | Description | References |
| --------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [React frontend MS SQL](./frontend-react-mssql/README.md) | This sample provides a frontend React UI application configured with the sample `Order` APIs | - |
| [UI5 frontend MS SQL](./frontend-ui5-mssql/README.md) | This sample provides a frontend SAPUI5 application configured with the sample `Order` APIs | - |
| [Deploy the SAPUI5 Frontend in SAP BTP, Kyma Runtime](./frontend-ui5-postgresql/README.md) | This sample provides a frontend SAPUI5 application configured with the sample `Order` APIs | - |

## CAP

Expand Down
11 changes: 0 additions & 11 deletions frontend-ui5-mssql/k8s/configmap.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions frontend-ui5-mssql/webapp/config.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# UI5 frontend MS SQL
# Deploy the SAPUI5 Frontend in SAP BTP, Kyma Runtime

## Overview

> [!NOTE]
> This sample is used in the Deploy the SAPUI5 Frontend in SAP BTP, Kyma Runtime tutorial.
Comment thread
grego952 marked this conversation as resolved.

This sample provides a frontend SAPUI5 application that you can configure with any of the sample `Order` APIs.

This sample demonstrates how to:
Expand Down Expand Up @@ -49,14 +52,14 @@ This sample demonstrates how to:
1. Build and push the image to your Docker repository:

```shell
docker build -t {your-docker-account}/fe-ui5-mssql -f docker/Dockerfile .
docker push {your-docker-account}/fe-ui5-mssql
docker build -t {your-docker-account}/fe-ui5-postgresql -f docker/Dockerfile .
docker push {your-docker-account}/fe-ui5-postgresql
```

2. To run the image locally, adjust the value of the **API_URL** parameter in the `webapp/config.js` file and mount it into the image:
2. To run the image locally, adjust the value of the **API_URL** parameter in the `webapp/config.json` file and mount it into the image:

```shell
docker run --mount type=bind,source=$(pwd)/webapp/config.json,target=/usr/share/nginx/html/config.json -p 8080:80 -d {your-docker-account}/fe-ui5-mssql:latest
docker run --mount type=bind,source=$(pwd)/webapp/config.json,target=/usr/share/nginx/html/config.json -p 8080:80 -d {your-docker-account}/fe-ui5-postgresql:latest
```

### Deploy the frontend
Expand All @@ -81,5 +84,5 @@ This sample demonstrates how to:
4. Use the APIRule to open the application:

```shell
https://fe-ui5-mssql.{cluster-domain}
https://fe-ui5-postgresql.{cluster-domain}
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# build environment
FROM node:current-slim as build
# build environment (pin to current LTS to avoid breaking CLI deps)
FROM node:24-slim AS build
WORKDIR /app
COPY package.json ./
RUN npm install
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apiVersion: gateway.kyma-project.io/v2
kind: APIRule
metadata:
name: fe-ui5-mssql
name: fe-ui5-postgresql
spec:
gateway: kyma-system/kyma-gateway
hosts:
- fe-ui5-mssql
- fe-ui5-postgresql
rules:
- methods:
- GET
noAuth: true
path: /*
service:
name: fe-ui5-mssql
name: fe-ui5-postgresql
port: 80
11 changes: 11 additions & 0 deletions frontend-ui5-postgresql/k8s/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kind: ConfigMap
apiVersion: v1
metadata:
name: fe-ui5-postgresql
labels:
app: fe-ui5-postgresql
data:
config.json: |-
{
"API_URL": "https://api-postgresql-go.{YOUR_KYMA_DOMAIN}"
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: fe-ui5-mssql
name: fe-ui5-postgresql
labels:
app: fe-ui5-mssql
app: fe-ui5-postgresql
spec:
replicas: 1
selector:
matchLabels:
app: fe-ui5-mssql
app: fe-ui5-postgresql
template:
metadata:
labels:
app: fe-ui5-mssql
app: fe-ui5-postgresql
spec:
containers:
- name: fe-ui5-mssql
image: jcawley5/fe-ui5-mssql
- name: fe-ui5-postgresql
image: johndoe/fe-ui5-postgresql
imagePullPolicy: Always
ports:
- name: http
Expand All @@ -28,17 +28,17 @@ spec:
volumes:
- name: config-volume
configMap:
name: fe-ui5-mssql
name: fe-ui5-postgresql
---
apiVersion: v1
kind: Service
metadata:
name: fe-ui5-mssql
name: fe-ui5-postgresql
labels:
app: fe-ui5-mssql
app: fe-ui5-postgresql
spec:
ports:
- name: http
port: 80
selector:
app: fe-ui5-mssql
app: fe-ui5-postgresql
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "frontend-ui5-mssql",
"version": "0.1.0",
"description": "Kyma Sample App - frontend-ui5-mssql",
"name": "frontend-ui5-postgresql",
"version": "1.0.0",
"description": "Kyma Sample App - frontend-ui5-postgresql",
"private": true,
"scripts": {
"start": "ui5 serve -o index.html",
"lint": "eslint webapp",
"karma": "karma start",
"karma-ci": "karma start karma-ci.conf.js",
"watch": "npm run karma",
"test": "npm run lint && rimraf coverage && npm run karma-ci",
"build": "rimraf dist && ui5 build --a"
"test": "npm run lint && rm -rf coverage && npm run karma-ci",
"build": "rm -rf dist && node node_modules/@ui5/cli/bin/ui5.js build --a"
},
"devDependencies": {
"@ui5/cli": "^2.2.6",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
specVersion: "2.1"
metadata:
name: frontend-ui5-mssql
name: frontend-ui5-postgresql
type: application
framework:
name: OpenUI5
Expand Down
3 changes: 3 additions & 0 deletions frontend-ui5-postgresql/webapp/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"API_URL": "https://api-postgresql-go.<cluster domain>"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sap.ui.define(["sap/ui/core/mvc/Controller", "skr/frontend/ui5/mssql/model/formatter"], function (
sap.ui.define(["sap/ui/core/mvc/Controller", "../model/formatter"], function (
Controller,
formatter
) {
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/frontend-ui5-postgresql/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This chart installs the example `frontend-ui5-postgresql`. Installing this chart will also install the charts [api-postgresql-go](../../api-postgresql-go/README.md) and [database-postgres](../../database-postgres/README.md)
This chart installs the example [frontend-ui5-postgresql](../../frontend-ui5-postgresql/README.md). Installing this chart will also install the charts [api-postgresql-go](../api-postgresql-go/README.md) and [database-postgres](../../database-postgres/README.md)


## Installing the Chart
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/helm-charts-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ For more information see [helm](https://helm.sh/)

## Samples

- [Deploy the SAPUI5 Frontend in SAP BTP, Kyma Runtime](../frontend-ui5-postgresql/README.md)
- will also install dependent charts [Deploy a Go PostgreSQL API Endpoint in SAP BTP, Kyma Runtime](./api-postgresql-go/README.md) and [PostgreSQL Database](../database-postgres/README.md)
- [Deploy a Go PostgreSQL API Endpoint in SAP BTP, Kyma Runtime](../api-postgresql-go/README.md)
- will also install dependent chart [PostgreSQL Database](../database-postgres/README.md)
- [Use and Seed SAP BTP PostgreSQL in SAP BTP, Kyma Runtime](../database-postgres/README.md)
Expand Down
Loading