Skip to content

Latest commit

 

History

History
70 lines (34 loc) · 2.93 KB

previewing-an-application-b962685.md

File metadata and controls

70 lines (34 loc) · 2.93 KB

Previewing an Application

Note:

In the development environment, localhost is used as an HTTP proxy server to reach the back-end OData service. A domain security policy, that is applied in some companies, includes localhost, which forces HTTPS to be used in redirected URLs. As a result, when the user attempts to access a website, an error may occur.

If an SSL protocol error appears after the URL redirection, check the security configuration of your browser. For example, Chrome HSTS configuration can be accessed by entering the following URL address to the browser: chrome://net-internals/#hsts.

After the application is successfully generated, several options to preview it are available by running npm start scripts in the terminal:

For various options of starting your application, use the Run Control function in VS Code or SAP Business Application Studio. You can also create a new Run Configuration in SAP Business Application Studio or Launch Configuration in VS Code:

This section provides instructions on previewing an application from a context menu in VS Code and SAP Business Application Studio.

You can right-click the project folder or any application-related subfolder and click Preview Application. You have the following options by default:

  • start - starts the application with real service data.

  • start-local - starts the application with mock data and a local copy of the SAPUI5 resources for offline work.

  • start-noflp - starts the application without the sandbox for SAP Fiori launchpad.

  • start-mock - starts the application with mock data.

Run configurations - starts the application using the existing run configuration selection in the preview command.

Note:

Automatic download is only supported with SAPUI5 versions 1.76 and higher.