SAP UI5 Fiori applications are fundamental in crafting intuitive user interfaces akin to state-of-the-art applications built on the robust UI5 framework, providing a seamless and engaging user experience.
Generally, to connect your Cloud Application to Backend (Internal or External System), you need to deploy the solution to BTP so that BTP Infrastructure will take care of the connection securely.
However, during the design and development phase of the BTP application, if you would like to preview the application locally, so that you can run/debug locally without deployment, then SAP Fiori tools offer the sap/ux-ui5-tooling
npm package.
In this guide, I will delve into the essential approaches for achieving this goal, assuming you already have the necessary prerequisites and configurations in place, excluding
UI5 CLI Tooling and @sap/ux-ui5-tooling
setup.
If you found this blog post useful in your learning journey, please consider giving it a ‘‘Like’ ,‘Share’ it with your friends and followers, and ‘Follow’ me for more valuable content. Your support means a lot to me!
npm start
or ui5 serve
within the terminal to initiate a local development server, serving my Fiori application locally.
npm run start-local
Ctrl+Shift+P
(Windows/Linux) or Cmd+Shift+P
(Mac).Note: An Application Information page is shown giving you an overview of project details and tasks that you may perform on this project. It is recommended that you keep this page open as it will be used in other steps.
SAP Business Application Studio opens the application in a new tab, as demonstrated in the below screenshot, you can view $metadata of the Northwind service in the Network tab.
For a customized approach to running your SAP UI5 Fiori application, you can configure specific run settings based on your project requirements. This allows for greater control and flexibility in your local development process.
To set up a run configuration:
Thank you for reading! If you found this blog post useful in your learning journey, please consider giving it a ‘‘Like’ ,‘Share’ it with your friends and followers, and ‘Follow’ me for more valuable content. Your support means a lot to me!
If you encounter any problems, have feedback, or need help, feel free to leave a comment or contact the SAP Community for assistance