Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Baidu application engine BAE to quickly build Wechat service

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article is about how to use Baidu application engine BAE to quickly build Wechat services. I think it's very practical, so I share it with you. I hope you can get something after reading this article. Without saying much, let's take a look at it.

Many developers want to use Wechat to make their products more interesting and promote the commercial transformation of their products. Based on this demand, Baidu application engine BAE (basic) already supports Wechat, the open source framework of WeChat. The entire configuration process takes only 10 minutes to complete as follows.

First log in to the control panel of the basic version of BAE, and BAE will provide the deployment of the Wechat official account to users as a separate scenario.

Click the button on "deploy Wechat official account" to go to the creation page.

On the creation page, you can see all the supported Wechat site building templates. Currently, two open source Wechat templates, wemall and Wechat, are supported.

Select WeChat as the template for building the site.

Then there are the configuration items for the deployment information and the execution unit package.

Among these configuration items, there is a special point to pay attention to, that is, the code version tool uses packaged upload instead of svn/git. According to the official introduction of bae, all templates provided by bae now only provide packaged uploaded code management. The reason is that these templates will be in the process of running (initialize installation, upgrade). The plug-in produces a lot of code and data files locally. If you use svn/git, these runtime files cannot be automatically submitted to svn/git. The most direct impact is that after the application of failover, the code and data are gone, and the application goes back to pre-liberation overnight. Packaging and uploading is created to solve this problem. Bae automatically backs up and packages all the user's code and data, and recovers it from the backup package during failover, so it won't have any impact on the application.

Now it seems that with this feature, users no longer have to worry about data loss and relieve them of the burden of self-persistence. I would like to give a big compliment to this point.

To get back to the point, choose the configuration to pay the order, and a server containing the WeChat template is set up.

The next step is to install it.

Go to the service you just created and go to the following installation page

Check the check box at the bottom of the page and click the "continue" button to enter the "Environmental Monitoring" page. Everything looks normal.

Proceed to the next step to configure the database and management options, if the database, bae is to provide mysql data for free, just create one yourself.

There is a hole to say, that is, you need to add the port number in the database host. The port number of the database provided by bae is 4050, not the default 3306.

Click "continue" when the configuration is complete, and you will see the successful installation page below.

Click the "visit the home page" button to officially enter your WeChat backend (leave out the landing page here and replenish your brain by yourself)

According to the recommendation of WeChat, go to the registration site after the installation is successful, and then you need to update the code.

Click on the system at the top right of the page, and after entering, you can see the functional options of "one click update" and "register site".

Register the site

One-click update

The following pop-up box prompts will be included after the update is completed.

After all this is done, it's time to configure Wechat.

On the WeChat's official account list page, click the button "add official account"

The main thing is to configure the information in the above page. After the configuration is completed, WeChat will automatically generate a guide page for you to configure on the WeChat side.

According to the above description, complete the configuration on WeChat, and then check whether the connection is successful.

After success, you can see your WeChat account on the official account list page.

At this point, all the basic configurations are complete. There are a variety of plug-ins to choose from in the application market, such as WeChat Mall, Micro Community and so on. The next step is to choose according to your needs, there is no need for personal code development. Below is a screenshot of WeChat's app mall, and you can see that the app is still very rich.

The above is how to use Baidu application engine BAE to quickly build Wechat services. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report