Developing a Mini Program usually includes the following steps:
- Download IDE
- Create a Mini Program
- Download configuration file
- Create login environment and login to IDE
- Select the associated Mini Program
- Edit code
- Upload Mini Program
- Release Mini Program
Download IDE
Go to the Mini Program download center and download the required version of the development tool (IDE).
Create a Mini Program
- After downloading and installing the Mini Program IDE, open the IDE, choose Mini Program on the left side menu, and then click the plus icon on the right to add a new project.
- In the Select Target Platform step, choose mPaaS and click Next.
In the Select Template step, choose the mPaaS sample template and click Next.
Enter the project name, specify the project path, and click Complete to complete the Mini Program project creation.
Download configuration file
Every time you create a new environment, you need to upload the IDE configuration file of the corresponding Mini Program downloaded from the console.
- Go to mPaaS console > Mini Program > Release Mini Program > Manage configuration, enter the configuration file downloading page, click Download configuration file in IDE configuration management, and download the Mini Program IDE configuration file. Note: The IDE configuration file is different from the configuration file of the mPaaS application.
- After clicking Download configuration file, the Download configuration file window will pop up. You need to enter a password in the Dynamic password, which is the login password used when logging in to the IDE later.
Note: The default name of the downloaded configuration file isconfig.json
.
Create login environment and login to IDE
Create login environment
- In the Mini Program IDE, click Login in the upper right.
- If the login environment has not been created, the Create environment window will pop up; if the login environment has been created, the login window will pop up.
- If you are creating a login environment for the first time, enter the environment name in the current window and upload the Mini Program IDE configuration file (
config.json
file) downloaded from the mPaaS console. - If you have created a login environment, click the environment selection menu at the top of the window, and select + Create environment at the bottom of the menu. Enter the environment name and upload the Mini Program IDE configuration file (
config.json
file) downloaded from the mPaaS console.
- If you are creating a login environment for the first time, enter the environment name in the current window and upload the Mini Program IDE configuration file (
- Click OK to create a new login environment.
Log in to the IDE
After successfully creating a login environment, in the login window, enter the account and password to log in.
- The account is the username for logging in to the Alibaba Cloud console.
- The password is the dynamic password set when downloading the IDE configuration file.
Select the associated Mini Program
After logging in to the IDE, at the top left of the interface, click Select the associated Mini Program, and select the Mini Program created in the console from the drop-down menu.
Edit code
After selecting the associated Mini Program, you can start editing the Mini Program code.
Upload Mini Program
After editing the code, click Upload in the upper right of the IDE interface to upload the Mini Program to the mPaaS console.
Release Mini Program
Go to the mPaaS console > Mini Program > Release Mini Program to release. For details, see Release Mini Program package.