Skip to main content

Quick Start

Binance mini program is a development framework for binance. It allows developers to quickly build mini program applications that run on the binance app using React and Javascript. The mini program also provides a set of api and services to help developers quickly access binance's services and build their business.

This article provides a quick start guide to the mini program.

Overall Process#

graph TD A[Create a new App] --> B(Write codes) B --> C(Debug with DevServer) B --> D(Build it) D --> E(Upload to Management) E --> F(Set as Experience Version) E --> G(Submit for review) G -->|Pass review|H(Run on Binance app) F --> H I(Register and login on Management) --> J(Create a new App) J --> E

Download and install CLI#

$ npm install -g @binance/mp-cli

Create a new app#

$ bmp init hello-world

Build the app#

$ cd hello-world$ bmp build

Mini-program files will be generated in the project directory.

More about CLI can reference to CLI

Create the app in managment portal#

After registering and logging in the management portal, we can apply for an mini program, get the appId, fill in the relevant information. And then we can manage its version in the managment portal, release the beta version or submit the publish version for review.

Upload the app#

Upload the mini-program files with Binance Devtools. After successful upload, you can see the current version information in the backend.

Publish it#

Submit the app for review in the management portal. Once the review is complete, the app will be searchable on the binance app and users will be able to open and use it directly.