Skip to content

A sample UI5 Lib ready for Full-Stack WebIDE + deployment & consumption in own apps

Notifications You must be signed in to change notification settings

nzamani/ui5-lib-webide-demo

Repository files navigation

ui5-lib-webide-demo

This is just a demo project to illustrate how smoothly you can implement a ui5 library and an app in the SAP Web IDE Full-Stack. All you need to do is uploading the 2 zip files into the SAP Full-Stack Web IDE, then you deploy the lib project, finally you run the app project. Done. For details see the links below.

Links

  1. Blog: Implementing a custom UI5 lib and a UI5 app consuming the lib using SAP Full-Stack WebIDE with Grunt
  2. Screencast on Youtube: https://www.youtube.com/watch?v=CmLNJoAEKq0

Checknig the App Index (after deployment)

  1. After deployment to SAPCP check the App Index for each of the deployed projects, i.e.:

    FYI: The id parameter is the corresponding SAPUI5 Component ID, i.e. try sap.m to see how a correct result should look like and compare it with the result of your own component.

  2. What about the ABAP App Index?

Yes, there is also an App Index in ABAP. In fact, you only need to replace the host etc so that the URLs above point to your ABAP server, i.e.:

As you can see, that works because paths (i.e. /sap/bc/ui2/app_index/ui5_app_info_json) are the same on both ABAP and SAPCP.

Local Build

  1. Clone repo and change directory

    git clone https://github.com/nzamani/ui5-lib-webide-demo.git
    cd ui5-lib-webide-demo
    
  2. Add SAP's NPM package registry (if you haven't already)

    • Local: npm config set @sap:registry https://npm.sap.com
    • Global: npm config --global set @sap:registry https://npm.sap.com
  3. Install NPM Dependencies

    npm install
    
  4. Build Library Project

    cd nabi.sample.ui5lib
    grunt
    

    Check the dist folder.

  5. Build App Project

    cd ../nabi.sample.ui5app
    grunt
    

    Check the dist folder.

About

A sample UI5 Lib ready for Full-Stack WebIDE + deployment & consumption in own apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published