All Products
Search
Document Center

SuperApp:Use the Miniapp Project Template

Last Updated:Sep 19, 2025

The project template provided by SuperApp allows you to directly compile and build WindVane miniapps. It helps developers quickly understand the miniapp code structure and focus on business logic development. This topic describes how to use the WindVane miniapp project template in Visual Studio Code.

Prerequisites

Ensure that the following tools are installed with their latest versions:

Initialize the Project Template

  1. In the Visual Studio Code sidebar, click the截屏2022-12-30 下午4 SuperApp Miniapp Develop Tool extension icon.

  2. Click Create Miniapp in the current window. A template selection page appears.

    1. The VS Code extension for WindVane includes seven built-in templates that support major frontend frameworks, including React, Vue, and Angular, with two variants provided for each framework to suit different use cases. Additionally, a framework-agnostic template is available for standalone development without any framework dependency.

      image

  3. After selecting a template, the system displays a file save dialog (shown below for macOS).

    1. Specify a custom app name and select the project storage directory.

    2. Click Create to initialize the project.

    Once initialization is complete, the extension automatically opens the generated project.

image

Install Project Dependencies

  1. Run the npm install command in the project root directory to install dependencies:

image

  1. Project Directory Structure

    • public contains public resources of the project.

    • scripts contains the build scripts.

    • src contains source files of the project. It consists of the following subdirectories and files:

      • assets: stores images such as the logo file.

      • components: stores component files.

      • index.js: the entry file for the project.

    • package.json is the configuration file of the project.

    • node_modules contains the project dependency modules loaded by the npm command.

    • dist is generated after the project is packaged by running the npm run build command.

Integrate JavaScript APIs

Note

The VS Code extension for WindVane supports quick integration of JavaScript APIs through code snippets and IntelliSense.

For detailed information about available APIs, see JavaScript APIs.

In the Visual Studio Code extension for WindVane, IntelliSense is available for code related to WindVane JavaScript APIs. When you type WV in a .js or .ts file, a list of relevant APIs will be displayed. Upon selecting a specific API, the corresponding code snippet is automatically inserted into your project, streamlining the integration process.imageimage