SAP-samples / ui5-deployments

Showcases a simple UI5 freestyle application and its deployment options to SAP BTP, Cloud Foundry Environment
https://blogs.sap.com/2022/11/01/build-and-deploy-ui5-freestyle-applications-to-sap-btp-cloud-foundry-environment/
Apache License 2.0
22 stars 5 forks source link
approuter cloud-foundry cloudfoundry managed-approuter mta open-source sample sample-code sap-btp sapui5 standalone-approuter ui5

Build & Deploy SAPUI5 Freestyle Applications to SAP BTP, Cloud Foundry Environment

REUSE status

Intro

This repo aims to showcase a simple UI5 freestyle application that can be deployed to SAP BTP, Cloud Foundry Environment with:

A full explanation can be found in this SAP Community blog post.

Requirements

Build Steps

Run the mbt build command with either of the mta.yaml files either directly or via the npm scripts in the root package.json:

More info: https://sap.github.io/cloud-mta-build-tool/usage/

Standalone mta

Managed mta

Deploy Steps

Enable cf deploy and cf undeploy commands (see also multiapps-cli-plugin)

Login to your preferred BTP Cloud Foundry Space & deploy the MTAR archives

In case of undeploy, you can undeploy the mta projects completely using:

After Deployment

Verify service instances and application

Make sure that all service instances and the cf application for the standalone scenario have been deployed successfully

Verify html5 app content in html5 application repository

Make sure that the html5 module content has been uploaded successfully in the html5 app repo host service instance

More info: https://sap.github.io/cf-html5-apps-repo-cli-plugin/

Authorize

Execute

run the app either via

Further Topics

Testing the app within BAS

How to obtain support

Create an issue in this repository if you find a bug or have questions about the content.

For additional support, ask a question in SAP Community.

Contributing

If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.

Code of Conduct

The SAP-samples CoC applies.

License

Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.