Giter Site home page Giter Site logo

claudip / cloud-extension-html5-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sap-samples/cloud-extension-html5-sample

0.0 0.0 0.0 36.55 MB

The sample showcases a custom SAP Fiori UX application for an API exposed from an SAP S/4HANA system or any other backend.

License: Apache License 2.0

JavaScript 94.54% HTML 5.46%

cloud-extension-html5-sample's Introduction

Managed HTML5 Application Sample

REUSE status

SAP Business Technology Platform enables you to access and run HTML5 Applications in a cloud environment without the need to maintain your own runtime infrastructure.

HTML5 Applications consist of static content that runs on a browser. You can develop your applications - either in SAP Business Application Studio, or in your own IDE (integrated development environment) - and deploy them to the HTML5 Application Repository.

Depending on your backend application setup, you either configure the destinations during development, or define them after deploying the application. Finally, to consume the applications, you can create a site in SAP Cloud Portal Service, build the URL, and define custom domains.

For more information, please refer to the documentation on SAP Help Portal.

Build Custom SAP Fiori User Experience

The objective of this reference application is to showcase the ease of building custom frontends for SAP applications โ€“ Bring the ease of use of HTML5 Application on SAP Business Technology Platform Neo Environment to the Multi-Cloud environment.

Prerequisites

Entitlements

Make sure that you have an account with below entitlements for your sub account

Service Plan Number of Instances
Destination lite 2
HTML5 Application app-host 2

Subscriptions

Make sure that the below subscriptions are active for your sub account
a. Business Application Studio
b. Portal

Steps

  1. From the Subaccount Overview page, click on the tab "Subscriptions"
  2. Search for "Portal"
  3. Click on "Portal"
  4. Click on "Subscribe"
  5. Click on your subaccount
  6. Similarly, subscribe to Business Application Studio. Subscription

Role Collections

To access Business Application Studio, users will the role "Business_Application_Studio_Developer".

  1. In the Subaccount Overview page, Expand Security and Click on Trust Configuration
  2. Click on "SAP ID Service"
  3. Enter Email Address and Click on "Show Assignments"
  4. Click on "Add User" to add the user to the SAP ID Service (if user is not already present in the IDP)
  5. Click on "Assign Role Collection"
  6. Select "Business_Application_Studio_Developer"
  7. Click on "Assign Role collection" AssignRoleCollection

Destination Setup

A destination to ES5 is to be configured in the subaccount from which you will access the SAP Business Application Studio. To do this, please follow the steps below:

  1. Create an Account on the Gateway Demo System using the steps here
  2. Create a Destination within the Cloud Foundry Environment using the steps here, and set the ES5 destination properties as follows: Common properties
    • Name: ES5
    • Type: HTTP
    • Description: ES5
    • URL: https://sapes5.sapdevcenter.com:443
    • Proxy Type: Internet
    • Authentication: BasicAuthentication
    • User Name: Your ES5 Gateway user
    • Authentication: Your ES5 Gateway password
    • Additional Properties:
    • HTML5.DynamicDestination: true (Type this additional property manually as it is not available in the drop-down list)
    • sap-client: 002
    • WebIDEEnabled: true
    • WebIDESystem: ES5
    • WebIDEUsage: odata_abap Destination

Build and Deploy of the Application

  1. Open the Business Application Studio from Subaccount> Subscriptions
  2. Login to the Application using your CF account login credentials
  3. Click on "Create Dev Space"
  4. Enter the name of the space and Choose "SAP Fiori" and select "Launchpad Module" from Additional Extensions BizappDevSpace
  5. Once the devspace is created, open it.
  6. Go to View-> Select "Find Command" FindCommand
  7. Search for "CF Login"
  8. Select for "CF: Login on to Cloud Foundry" CFLoginBizapp
  9. Enter CF API endpoint
  10. Enter "Email" and "Password" when prompted
  11. Select your org and space to login to Cloud Foundry
  12. Go to View > Find Command
  13. Search for "Clone" and select the command "Git:Clone"
  14. In the pop up, enter the git repository link
  15. Once the cloning is complete, you can view the project in 'Explorer'
  16. Go to Terminal > New Terminal
  17. In the terminal window, navigate to the project root folder
  18. Run the command - mbt build
  19. Once the build is complete, expand the mta_archives folder in the project root folder.
  20. Right click on the cloud-extension-html5-sample-1.0.0.mtar and select " Deploy MTA Archive" BuildAndDeploy
  21. Add the role collection "BPViewerRC" to your user using the steps mentioned above.
  22. Now, run the command cf html5-list -u -d. Open the URL corresponding to the application.

Known Issues

No known issues.

How to Obtain Support

In case you find a bug, or you need additional support, please open an issue here in GitHub.

License

Copyright (c) 2020 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.

cloud-extension-html5-sample's People

Contributors

lakshmicr avatar btbernard avatar gopalanand333 avatar cherians avatar shankarigr avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.