Start the application using the npm start
command. Then, the application runs on localhost:8080
and connects to an OData service endpoint. The preview of the application opens automatically in a new browser tab. If the OData endpoint requires authentication, the browser prompts you to enter your credentials.
-
In VS Code, open the terminal.
To open the terminal in VS Code, perform the following steps:
- Use the [Ctrl+`] keyboard shortcut with the backtick character.
- Navigate to 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 start
and press Enter.The preview of your application starts automatically.
If port 8080 is already in use, the system selects the next available port to start the application.
-
In SAP Business Application Studio, open the terminal.
To open the terminal in SAP Business Application Studio, perform the following steps:
- 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
and press Enter.The preview of your application starts automatically.