Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
WouterLemaire
Active Contributor
376

In this blog post I want to describe my setup of the demo projects that I used at UI5con 2024: https://www.youtube.com/watch?v=V7ur_kPx8nE 

The same setup is used for the following blog posts:

UI5 Controls demo project

The UI5 Controls demo project exists out of two artifacts, a UI5 library that contains the UI5 controls and a UI5 app:

WouterLemaire_0-1722280840470.png

It can help to make a dedicated folder where you put in the different artifacts for the UI5 Control demo together. In this folder you can clone the following GitHub Repositories:

Run the following commands for both starting with the library:

  • git clone <url-repo>
  • npm i
  • npm run build

Once done for both you can run the app using npm start or npm run start:dist. This last one will run from the dist folder as a prebuild version of the app like it runs in production.

WouterLemaire_1-1722280840473.png

WouterLemaire_2-1722280840484.png

The library is connected to the app using local npm dependencies in the package.json:

WouterLemaire_3-1722280840485.png

This is resolved by the UI5 tooling and load the library when starting the UI5 app.

UI5 Web Components demo project

The UI5 Web Components demo project exists out of tree artifacts:

  • A UI5 Web Component package that contains the web components
  • A UI5 Library that contains the UI5 control wrappers for the web components
  • A UI5 app that consumes the Web Components through the UI5 controls from the UI5 library

 

WouterLemaire_4-1722280840492.png

It can again help to make a dedicated folder where you put in the different artifacts for the UI5 Web Component demo together. In this folder you can clone the following GitHub Repositories:

Run the following commands for both starting with the library:

  • git clone <url-repo>
  • npm i
  • npm run build
    • Use git bash for building the Web Component package

Once done for both you can run the app using npm start or npm run start:dist. This last one will run from the dist folder as a prebuild version of the app like it runs in production.

WouterLemaire_5-1722280840494.png

WouterLemaire_6-1722280840504.png

The UI5 library is connected to the UI5 Web Component package using local npm dependencies in the package.json of the UI5 Library:

WouterLemaire_7-1722280840504.png

This is needed for the library to build and generate the UI5 controls.

The UI5 app is again connected to the UI5 library also using local npm dependencies in the package.json of the UI5 app:

WouterLemaire_8-1722280840505.png

In addition, if you want to create your own UI5 Web Component and integrate it in your UI5 app you can follow this blog post series: https://community.sap.com/t5/technology-blogs-by-members/ui5con-2023-ui5-web-component/ba-p/13555277

Result

In the end, you should have a folder structure like this:

WouterLemaire_9-1722280840506.png

 

Labels in this area