Skip to content

Run the demo project ​

The demo project contains every example page and the project configuration. Import it from the DCloud plugin market and it runs right away, with no license purchase. If you only want to see the components before installing anything, start with Demo.

Prerequisites ​

ItemRequirement
EditorHBuilderX (stable, supports uni-app x)
OptionalWeChat / Alipay Mini Program DevTools (mini programs), an Android device or emulator (App)

Import the demo from the plugin market ​

The demo project is published on the DCloud plugin market, so it runs right after import with no extra configuration and no license purchase.

  1. Open DCloud Plugin Market · uView Pro X.
  2. Click "Import the demo project with HBuilderX" and choose an empty directory or an existing project directory as the import location.

Import the demo project from the DCloud plugin market

  1. On the plugin page, click "Trial" and select the demo project you just imported to bind the plugin to it. No license purchase is needed just to run the demo:

Click Trial on the plugin page

Click Trial to bind your project

  1. Back in HBuilderX, pick a target platform from the "Run" menu (H5, for example) and the demo project opens.

Run on each platform ​

With the project open in HBuilderX, pick a target platform from the "Run" menu. In trial mode only H5 works; App and mini programs need a purchased license:

PlatformActionNotes
H5Run → Run to browserDefaults to http://localhost:9010; fastest way to browse all example pages
WeChat Mini ProgramRun → Run to mini program simulator → WeChat DevToolsFill in the Mini Program appid in manifest.json and set the WeChat DevTools path in HBuilderX
Alipay Mini ProgramRun → Run to mini program simulator → Alipay Mini Program IDEFill in the Mini Program appid in manifest.json and set the Alipay Mini Program IDE path in HBuilderX
AppRun → Run to phone or emulatorConnect an Android device with USB debugging, or start an emulator; the first build is slow

Notes ​

  • The trial only runs on H5 so you can check the result; running on App or mini programs requires a purchased license. The trial cannot be used for an official release; the trial usually lasts 7 days, check the trial wizard for the exact period.

Troubleshooting ​

SymptomCauseFix
Compile error: uview-pro-x-uts not found / component missingPlugin not imported into the projectDownload and import it into the current project from the plugin market
Prompted to buy a licenseThe plugin is not bound to the current projectClick "Trial" on the plugin page and select the current demo project
SCSS error: $u-type-primary is undefineduni.scss not configured for the licenseAdd the $u-* block (normal license) or the @import (source-code license)
Error about a default importimport uViewProX from ... is usedSwitch to the named import import { uViewProX } from ...

Add it to your own project ​

The demo project is for trying things out. Using the components in your own uni-app x project requires a license, and a purchase binds it to apps under your DCloud account. The two licenses compare as follows:

EditionCode protectionLicenseTransaction
Normal licensePart of the source is hiddenUsage rights for this project and/or service space, plus secondary development rights on the unencrypted partSelf-service order, usable immediately; buyer identity stays private from the seller
Source-code licenseAll source code visibleUsage rights for this project and/or service space, full secondary development rights, and security verifiable through source reviewDigitally signed tripartite agreement, real-name transaction; the author may decline, and the buyer pays after signing to receive the source

See Pricing & License for prices and the full tier comparison.

See Quick Start for importing the library, configuring easycom, registering it and setting up the theme.