头图

Cloud hosting has supported one-click construction of service provider development environment

In order to help service provider developers to focus more on business development and reduce the cost of projects such as environment construction and management tool construction, the back-end services of third-party platforms and third-party platform management tools that are opened in the form of mirroring are now launched.

This image can be deployed to WeChat cloud hosting with one , and the third-party platform development environment construction and third-party platform management tool deployment can be completed in minutes.

In addition, the image is open source, which is convenient for developers to carry out secondary development. The official will also continue to maintain and iterate the tool to help service providers conduct business based on third-party platforms more efficiently.

project address:

https://github.com/WeixinCloud/wxcloudrun-wxcomponent

module introduction

One-click deployment of official services, you can get the following two functional modules:

  • [Third-party platform authorized events and message and event configuration] Service providers do not need to purchase servers, develop and receive events and messages pushed by the platform to developers, and deploy to cloud hosting with one click to obtain complete back-end services for receiving messages and events , out of the box.
  • [Third-party platform management tool] provides functions and usage guidelines, please click at the end of the article to read the original text for details.

How to build ?

If the official image is deployed to WeChat cloud hosting, one-click deployment and environment initialization configuration can be completed on the third-party platform. At the same time, developers are also supported to go to the project address to download the source code and build the mirror.

1.1, create a new account

For users who create a new third-party platform account, you can refer to the following steps to complete the setup.

  • Log in to the WeChat open platform, go to the third-party platform, and then click to create a third-party platform ;
  • Fill in the basic information and select to activate the cloud service:

图片

  • After the account is created, click "Build Now" to start the deployment:

图片

Start deploying. By default, a free environment will be created to deploy services, and if the free quota is used up, a paid environment will be created. Details of the free quota of WeChat cloud hosting can be found at:

https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/Billing/price.html

图片

  • The deployment is expected to be completed in 1-3 minutes:

图片

  • After the cloud service deployment is completed, you can complete the configuration of development materials such as "Permission Set", "Login Authorization Initiating Domain Name", "Authorization Event Receiving Configuration", "Message and Event Receiving Configuration", etc., to complete the development environment construction.

图片

  • After the development environment is set up, you can go to the third-party platform management tool to use it. For details, see the third-party platform management tool instructions.

图片

  • Since the secret needs to be configured in the third-party platform management tool to use the function normally, it is necessary to bind the third-party platform management according to the guidelines and use the open platform management to scan the code to verify the secret.

图片

  • To test the authorized account status, since the newly created third-party platform account has not been released on the entire network, you need to configure the original id of the authorized test account to the [Authorized Test Official Account/Mini Program List], and the third-party platform can be used after the configuration is completed. The function of the platform management tool quickly generates an authorization page to complete the authorization.

图片

  • To access the WeChat cloud hosting management service, you can access it from the following portal:

图片

1.2, stock account

For third-party platform accounts that are already in normal use, you can refer to the following steps to complete cloud service activation, deployment, and environment construction.

  • Log in to the WeChat open platform, go to the third-party platform, and enter the details of the third-party platform;
  • Then go to the "Cloud Services" module, click "Activate", and select "Create a New Account" or "Associate a Tencent Cloud Account"

图片

图片

  • After the cloud service is activated, click "Start Now" to enter the link of service deployment and environment configuration:

图片

  • For existing accounts, permission sets and development materials have been configured, it is recommended to fully test and then replace them with system-generated configurations:

图片

  • To stop ticket push, do the following:

图片

How to use ?

Using Authorization Events and Messages and Events Configuration

After the cloud service deployment is completed and the relevant configuration is applied to the development materials of the third-party platform, the back-end service can normally receive the messages pushed by the WeChat platform. The back-end service will store the received message and time in the MySQL database hosted by WeChat Cloud, and developers can read the relevant information from the database.

If the developer's business is also deployed in WeChat cloud hosting, the database can be accessed through the intranet. For details, please refer to:

https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/guide/mysql/

If the developer's business is not deployed in WeChat Cloud Hosting, you can go to WeChat Cloud Hosting to enable public network access, and then you can access the database through the public network.

图片

  • If developers need to further connect the messages pushed from the WeChat platform with the business, they can conduct secondary development according to the project README document.

Using third-party platform management tools

For details, see the instructions for use:

https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/product/management-tools.html

Manage Cloud Services

You can perform cloud service management, database management, viewing monitoring alarms, and viewing resource usage on WeChat Cloud Hosting. The way to log in to WeChat Cloud Hosting with a third-party platform account is as follows:

图片

  • After entering the WeChat cloud hosting console, you can perform related management operations:

图片

Complete reference documentation:
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/product/wxcloudrun.html


小程序云开发技术专栏
云开发CloudBase官方技术专栏!微信 x 腾讯云联合提供的小程序·云开发服务,快速构建小程序、Web和移动...

云开发(Tencent CloudBase,TCB)是云端一体化的后端云服务 ,采用 serverless 架构,免去了移动应用构...

422 声望
438 粉丝
0 条评论
推荐阅读
限量内测名额释放:微信云开发管理工具新功能
我们一直收到大家关于云数据库管理、快速搭建内部工具等诉求,为了给大家提供更好的开发体验,结合大家的诉求,云开发团队现推出新功能「管理工具」,现已启动内测,诚邀各位开发者参与内测体验。

CloudBase云开发阅读 52

封面图
使用taro+canvas实现微信小程序的图片分享功能 | 京东云技术团队
二轮充电业务中,用户充电完成后在订单详情页展示订单相关信息,用户点击分享按钮唤起微信小程序分享菜单,将生成的图片海报分享给微信好友或者下载到本地,好友可通过扫描海报中的二维码加群领取优惠。

京东云开发者2阅读 564

封面图
小程序内参数和扫码参数统一
写小程序的时候都会遇到扫码参数和小程序内跳转参数要分开处理的问题,但实际上参数和处理的方式都是一样的,这里封装一种方法,将扫码参数直接放到options下面,这样就不需要分开独立处理,减少冗余代码增加代码...

海洋饼干1阅读 888

1000套微信小程序源码开源版附H5小游戏源码及商城源码
随着微信小程序功能和生态的日益完善,很多企业的产品业务逐渐从App扩展到微信小程序和微信公众号。随着小程序项目页面越来越多,业务逻辑越来越复杂,现有的小程序元源码数量和种类不能满足快速增长的业务需求。...

会搭讪的烤地瓜阅读 3.6k

微信小程序归结
是的,在这个框架满天飞的年代,我既然有有幸使用了原生小程序开发项目,除了麻烦些,倒也不是一无所获,耕耘总有收货嘛,写博客本身不是为了炫技还是什么,单纯的是记性不好,有些知识点 自己是花了时间去查找的...

HappyCodingTop1阅读 1.3k

封面图
5 分钟带你小程序入门 [实战总结分享]
微信小程序常常用 4 种文件类型JS 文件JS 在小程序中用于编写页面逻辑和交互效果,可调用 API 接口完成数据请求和处理,也可以使用第三方库和框架。模块化编程:小程序中JS文件可以使用ES6的模块化语法,通过expo...

程序员海军2阅读 510

封面图
基于微信云开发 SayLove 表白墙微信小程序V1.0
后续会继续更新,敬请期待2.0全新版本~欢迎添加右边的微信一起探讨!项目地址:[链接][其他开源项目]租房小程序 [链接]计划助手 [链接]Bug修复更新日历[2021-05-12] 更新说明:【 课设毕设参考专用版本 】针对 昵...

LiangSenCheng阅读 2.1k

云开发(Tencent CloudBase,TCB)是云端一体化的后端云服务 ,采用 serverless 架构,免去了移动应用构...

422 声望
438 粉丝
宣传栏