• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

SAP-samples/multi-cloud-html5-apps-samples: Examples of HTML5 applications for m ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

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

开源软件地址:

https://github.com/SAP-samples/multi-cloud-html5-apps-samples

开源编程语言:

HTML 69.6%

开源软件介绍:

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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap