You need to install Mockserver before using
npm run start-mock
. For more information, see Installing MockServer.
Start the application using npm run start-mock
. The application runs on localhost:8080
but uses a mock server to reflect the OData endpoint. This way, you can use the application without having to connect to a live OData service and generate mock data on the fly. If you want to generate .json
files for your mock data, see: Data Editor. The preview of the application opens automatically in a new browser tab.
-
In Visual Studio Code (VS Code), open the terminal.
To open the terminal in VS Code,you can:
- Use the [Ctrl+`] keyboard shortcut with the backtick character.
- Select View > Terminal in the menu.
- Execute the View: Toggle Integrate Terminal command from the Command Palette ([CMD/CTRL] + [Shift] + [P] ) .
-
Ensure you are in the root directory of your project.
-
In the terminal pane, type
npm run start-mock
and press Enter.If port 8080 is already in use, the system chooses the next available port to start the application on.
You need to install Mockserver before using
npm run start-mock
. For more information, see Installing MockServer.
Start the application using npm run start-mock
. The application runs on localhost:8080
but uses a mock server to reflect the OData endpoint. This way, you can use the application without having to connect to a live OData service.
-
In SAP Business Application Studio, open the terminal.
To open the terminal in SAP Business Application Studio, you can:
- Select Terminal > New Terminal from the menu.
-
Ensure that you are in the root directory of your project.
-
In the terminal pane, type
npm run start-mock
and press Enter.