Start the application using the npm run start-local
command. Then, the application runs on localhost:8080
and uses a mock server to reflect the OData endpoint. A local copy of the SAPUI5 library is downloaded from npmjs
, if necessary. You can modify the version by updating the ui5-local.yaml
file in the project folder. This way, you can use the application without connection to a backend.
-
In VS Code, open the terminal.
To open the terminal VS Code:
- Use the [Ctrl+`] keyboard shortcut with the backtick character.
- Use the View > Terminal menu command.
- From the Command Palette ([CMD/CTRL] + [Shift] + [P] ), execute the View: Toggle Integrate Terminal command.
-
Ensure you are in the root directory of your project.
-
In the terminal pane, type
npm run start-local
and press Enter.The preview of your application starts automatically.
The automatic download is only supported with SAPUI5 versions 1.76 and higher.
-
In SAP Business Application Studio, open the terminal.
To open the terminal in SAP Business Application Studio:
- Select Terminal > New Terminal from the menu bar.
-
Ensure you are in the root directory of your project.
-
In the terminal pane, type
npm start-local
and press Enter.The preview of your application starts automatically.
The automatic download is only supported with SAPUI5 versions 1.76 and higher.