Skip to content

Latest commit

 

History

History
52 lines (29 loc) · 1.79 KB

use-local-sources-6d3a210.md

File metadata and controls

52 lines (29 loc) · 1.79 KB

Use Local Sources

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.

  1. In VS Code, open the terminal.

    Note:

    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.
  2. Ensure you are in the root directory of your project.

  3. In the terminal pane, type npm run start-local and press Enter.

    The preview of your application starts automatically.

    Note:

    The automatic download is only supported with SAPUI5 versions 1.76 and higher.

  1. In SAP Business Application Studio, open the terminal.

    Note:

    To open the terminal in SAP Business Application Studio:

    • Select Terminal > New Terminal from the menu bar.
  2. Ensure you are in the root directory of your project.

  3. In the terminal pane, type npm start-local and press Enter.

    The preview of your application starts automatically.

    Note:

    The automatic download is only supported with SAPUI5 versions 1.76 and higher.