Skip to content

Load local host Mini App

1. Description

Load directly mini-app from the project via localhost and MacBook vs phone device must connect to the same network, You can change the code and use the feature hot refresh of the V99 Sandbox to refresh the code and load a new mini-app in the tool(Reference to feature IV). After that, you can debug and test mini-apps.

2. Usage

Step 1: Start localhost of project mini app via V99-CLI

  • Go to the root of the mini-app project, and open the terminal here.
  • Generate the QR code of the local host mini-app with default port 8181 by the command:

Install v99-cli

v99-cli app start

See more.

v99-cli app start

Note: if you want to start the mini-app with another port 8181, you can run the command:

v99-cli app start -p [port]

See more.

v99-cli app start port

Step 2: Scan QR via V99 Sandbox

  • Press the QR Code icon ic_qrscan.png at the right header bar of Sandbox App.
  • Let's scan the QR code generated in step 1.
  • If there are no any errors, the V99 Sandbox app will show the loading. Also, we will see the terminal of the project mini-app loading modules to the V99 Sandbox app.
  • Wait a moment and you can see the mini app loaded in the V99 Sandbox app.

Device screen:

bundle-loading

Terminal screen:

bundle-loading