Home > Article > Development Tools > Detailed explanation of the steps to set up Gitee applet
Gitee is a very good open source platform that not only supports code hosting, but also has many functions such as Wiki, blog, email, CI/CD, etc. For mini program developers, Gitee also provides mini program settings. Today we will explain in detail the steps to set up the Gitee applet.
First, we need to create a new mini program on Gitee. Open the Gitee homepage, click "New Warehouse", and select "Mini Program" in "Warehouse Type".
On the "Create New Mini Program" page, fill in the basic information of the mini program, such as the mini program name, description, logo, etc. After filling in, click "Create".
After the creation is completed, we need to configure the applet. Enter the mini program you just created and click the "Settings" button to enter the mini program settings page.
In the mini program settings page, there are multiple options that need to be configured:
The basic information of the mini program requires filling in the mini program name, mini program ID, Version number, description, icon, developer information, etc. This information will be displayed on the mini program's details page. Except for the mini program ID, all other information can be modified later.
In the security settings, you can set the access permissions of the mini program, authorized domain name, JS interface security domain name, etc.
In the settings, you can configure template messages, customer service messages, card and coupon functions, etc.
Alarm settings can set abnormal alarms during the running of the mini program to facilitate troubleshooting.
The QR code of the mini program can be generated on the QR code page to facilitate user access.
After the mini program is configured, we need to upload the code to Gitee. In the mini program details page, we can find the address of the mini program warehouse.
After cloning the applet code locally, you can develop and debug it locally. After development is completed, we need to upload the code to Gitee. Just run the following command in the local directory:
git add . git commit -m "upload code" git push origin master
At this point, we have successfully uploaded the code to Gitee.
After the code upload is completed, we need to submit the mini program for review. On the mini program details page, find the "Submit for Review" button and click to enter the review page.
On the review page, you need to fill in the basic information and permission information of the mini program. After passing the review, the mini program can be launched online.
Through the above four steps, we have successfully configured the mini program to Gitee and put the mini program online. Using Gitee for small program development can facilitate version control, collaborative development, etc., bringing greater convenience to the development and iteration of small programs.
The above is the detailed content of Detailed explanation of the steps to set up Gitee applet. For more information, please follow other related articles on the PHP Chinese website!