SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →Reference

SAP-samples/multi-cloud-html5-apps-samples

Example HTML5 apps on the SAP HTML5 Application Repository service, split between a standalone and a managed application router, across Cloud Foundry and Kyma.

Both router options serve static content from the repository, authenticate users and forward requests to other services, and the examples cover both: a standalone router embedded in the app, with variants for XSUAA and destination-service binding, a multi-tenant Fiori app, and Cloud Portal integration; a managed router that needs no application-router module at all, on Cloud Foundry and on Kyma with a JWT-secured backend. The repository states a preference for the managed router in general, reserving the standalone one for cases that need router extensibility. It stops at the routing layer: the apps behind each router are minimal by design, meant to show the wiring rather than a real business scenario.

Facts

Last pushLicenceApache-2.0

Where it sits

Lives in
Demonstrates
App hostingBTPApp hostingcapabilityWhere a built frontend lives and what serves it — the static files of a frontend application after the build, reachable behind a login and beside the API it talks to, without a web server of your own.

Who is behind it

SAP SamplesSAP SamplesOrganisationMaintains this
In the atlas: maintains 222
@SAP-samples
maintainerAndreas ThalerPersonContributes to this
In the atlas: contributes to 1
@a-thaler
Ajinkya PatilPersonContributes to this
In the atlas: contributes to 112
@ajinkyapatil8190
ariluluPersonContributes to this
In the atlas: contributes to 1
@arilulu
Boyan VelinovPersonContributes to this
In the atlas: contributes to 2
@boyan-velinov
Brian BernardPersonContributes to this
In the atlas: contributes to 64
@btbernard
DidoPersonContributes to this
In the atlas: contributes to 3
@ddonchev
Gregor WolfPersonContributes to this
In the atlas: maintains 17, contributes to 59, wrote 2
@gregorwolf
Marius ObertPersonContributes to this
In the atlas: contributes to 3
@IObert
kdassPersonContributes to this
In the atlas: contributes to 1
@kdass
Nico SchoenteichPersonContributes to this
In the atlas: maintains 3, contributes to 16, wrote 3
@nicoschoenteich
15 contributors

What it declares

Every artifact

Type
Sample
Origin
By SAP
Use as
A reference

As a sample

Form
Code snippets

Connections1

SAP-samples/multi-cloud-html5-apps-samples connectionsSAP-samples/multi-cloud-html5-apps-samplesPROVIDES→ demonstrates1demonstrates authoredApp hosting

README

quoted from SAP-samples/multi-cloud-html5-apps-samples under Apache-2.0, read
SAP-samples/multi-cloud-html5-apps-samples/README.mdOn GitHub

Examples of HTML5 Applications for SAP Business Technology Platform Multi-Cloud Environments

REUSE status

This repository contains examples of HTML5 applications for multiple SAP BTP environments. The examples show how you can use standalone application routers or managed application routers to achieve different goals and they demonstrate the capabilities of the SAP HTML5 Application Repository service for SAP BTP.

On the Cloud Foundry and Kyma environment of SAP BTP, you can run an application that was uploaded to the SAP HTML5 Application Repository service for SAP BTP using one of the following options: a standalone application router or a managed application router. Both options allow you to serve static content from the HTML5 Application Repository, authenticate users, rewrite URLs, and forward or proxy requests to other micro services while propagating user information. However, the option that is managed brings many benefits, such as:

  • Simplifying and speeding up your development and deployment experience
  • Saving resources by running a serverless HTML5 application, which doesn’t require any application runtime
  • Lower maintenance efforts by leveraging the most up-to-date routing capabilities
  • Meeting the changing demand for HTML5 applications by automatically adjusting the service to maintain consistent and predictable performance

In general, we recommend using the managed application router. Use an standalone application router preferably only in advanced cases, for example when application router extensibility is required.

For more information, see

Examples for SAP BTP, Cloud Foundry Environment

Before you start with the examples, please make sure that you are familiar with the basic concepts of HTML5 web apps in the Cloud Foundry environment, such as Cloud Foundry applications, services, service bindings. For more information, see this video.

The HTML5 Application Repository can hold any UI project independent of the used framework. Use the following commands of the Cloud Foundry CLI plugin plugin to upload the HTML5 apps to the application repository:

mkdir myapp
cd myapp
echo '{"sap.app":{"id":"myapp","applicationVersion":{"version": "1.0.0"}}}' > manifest.json
echo '{"routes":[{"source":"^(.*)","target": "$1","service":"html5-apps-repo-rt"}]}' > xs-app.json
cf html5-push

For information about how to upload a react-based application to the HTML5 Application Repository, see this blog post.

Requirements

  • You need one of the following SAP BTP account types:

    • SAP BTP trial account in the region Europe (Frankfurt), or an SAP BTP free tier account. For creating an account see this tutorial.
    • SAP BTP productive account
  • Node.js LTS version 14 is installed: https://nodejs.org/en/download

  • Cloud Foundry Command Line tool (cf CLI) is installed. For more information, see this tutorial

  • The Multi-Target Application Cloud Foundry CLI Plugin (MultiApps CF CLI Plugin) is installed :

    cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org
    cf install-plugin multiapps
    
  • GNU Make : https://www.gnu.org/software/make

    If you are running macOS or Linux it's likely that you already have Make installed. As a Windows user, please use the Chocolatey package manager to install Make via choco install make. After the installation, please check you can start the executable (make) from the terminal.

HTML5 Apps Running on a Standalone Application Router

HTML5 Apps Using the Managed Application Router

In contrast to the examples above, you don't need an application router for the following apps, which use the managed application router. This reduces the total cost of ownership (TCO) and you don't have to update the application router manually.

Optional backend service

Examples for SAP BTP, Kubernetes Environment

HTML5 Apps Using the Managed Application Router

Known Issues

None so far :)

Support

This content is provided "as-is" with no other support.

Apache-2.0, read

Details

Sources3
GitHub organisations and accountsdiscovered herechecked
github.com/SAP-samples/multi-cloud-html5-apps-samplestree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viaGitHub organisations and accounts
first seen in the atlas
ecosystem and domainbtp, ui-and-frontend-bridge
Contributors15
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:sap-samples-multi-cloud-html5-apps-samples
JSON
/artifacts/sap-samples-multi-cloud-html5-apps-samples.json
MCP
Connecting an agent