# Introduction

Tencent Cloud provides developers with a free development environment and production environment, making it easier, faster, and more reliable to build your Mini Program.

NodeJS and PHP are currently supported on the server, and developers can use the developer toolkit for both server and Mini Program development.

# Development environment

  • Free to use.
  • Automatically allocate second-level domains for test: xxxxxxx.qcloud.la
  • Automatically deploy HTTPS for free
  • It is only used for on-line debugging and cannot be released.
  • Code deployment, running and database are completely separated from the production environment.
  • Unified with Weixin development tools, it can be used to deploy, debug, restart and restore codes with one click.

# Production environment

  • Users need to buy or use the existing Tencent Cloud domain names.
  • Automatically deploy HTTPS for free
  • It is used for on-line release and cannot be debugged.
  • Upload codes with Weixin development tools, operate and deploy in the Tencent Cloud console to separate the upload and release, reducing the risk of incorrect action.

# Log in to the Tencent Cloud after authorized by the Weixin Official Account Platform

Open the Weixin Official Account Platform to register and log in the Mini Program, and follow these steps:

  • Click "Settings" in the left menu bar.
  • Click "Developer Toolkit" in the Tab bar on the right.
  • Click "Tencent Cloud" to enter the Tencent Cloud Tools page, and click "Activate".
  • Grant the Mini Program access to the Tencent Cloud by scanning QR code of the Weixin whose ID is bound to the Mini Program. After activation, you will be directed to the Weixin Mini Program console on the Tencent Cloud. When it indicates the state as activated, you can proceed with the operation.

Note: At this time, the Tencent Cloud status viewed via the Mini Program developer toolkit is not shown as activated. The activated status will be synchronized to the Weixin developer toolkit after first deployment of the development environment.

Enter Weixin Official Account Platform backend

Activate Tencent Cloud

Tencent Cloud Weixin Mini Program console

# Install development tools

Download and install the latest version of the Weixin Developer Toolkit, scan the QR code with the Weixin whose ID is linked to the Mini Program to log in to the Developer Toolkit.

Weixin Developer Toolkit

# Import NodeJS DEMO and configure

  1. Open the Weixin developer toolkit installed in step 2 and click the "Mini Program Project" button.

  2. Enter the AppID for the Mini Program, select an empty directory as the project directory, select "Create Tencent Cloud Node.js Startup Template", and click "OK" to create a Mini Program project.

Weixin Developer Toolkit

  1. Install dependencies

    To facilitate local debugging, it is recommended to install dependencies locally. You can also skip this step and directly install the dependencies online using "Installation Dependencies" under "Tencent Cloud" menu in the developer toolkit.

    Open CMD to install dependencies in the directory you just selected:

    cd server && npm install
    

    Install dependencies

  2. Click the "Tencent Cloud" icon in the upper right of the interface and select "Upload Test Codes" in the drop-down menu bar.

    Upload button

  3. For the first use, it is recommended to select "Module Upload" and check all options. And then check "Automatically Install Dependencies after Deployment" and click "OK" to start code upload. After modifying the server codes later, it is recommended to select intelligent upload. The tool can only be used to upload modified codes.

    Select module

    Successfully uploaded

  4. After uploading the codes, click the "Details" button in the upper right, and select "Tencent Cloud Status" to see the development environment's domain name automatically assigned to you by Tencent Cloud:

    View development domain names

  5. If this is the first time for the current Mini Program to use Tencent Cloud Mini Program service, it needs to completely copy (including https://) the 'request' domain name of the development environment, open the client/config.js file in the editor, fill in the host with the copied domain name and save it. After saving, the editor will automatically compile the Mini Program. The Demo of the client can be displayed on the left emulator window in real time:

    Modify the client configuration

  6. Click "Login" in the emulator. If "Login Successful" is shown, the activation is completed, and then you can start other development.

    Login test

# Import the PHP DEMO and configure

  1. Open the Weixin developer toolkit installed in step 2 and click the "Mini Program Project" button.

    tips: It is important to note, if the NodeJS environment is activated for the current Mini Program, you need click the details button in the upper right of the tool, select the Tencent Cloud status, and click to switch languages.

    Weixin Developer Toolkit

    You can choose to switch the language environment in the management backstage of the Tencent Cloud.

    Weixin Developer Toolkit

  2. Enter the AppID for the Mini Program, select an empty directory as the project directory, select "Create Tencent Cloud PHP Startup Template", and click "OK" to create a Mini Program project.

    Weixin Developer Toolkit

  3. Click "OK" again to enter the developer toolkit.

    Developer Toolkit

  4. Click the "Tencent Cloud" icon in the upper right of the interface and select "Upload Test Codes" in the drop-down menu bar.

    Upload button

  5. After uploading the codes, click the "Details" button in the upper right, and select "Tencent Cloud Status" to see the development environment domain name automatically assigned to you by Tencent Cloud.

    View development domain names

  6. Completely copy (including https://) the 'request' domain name of the development environment, open the client/config.js file in the editor, fill in the host with the copied domain name and save it. After saving, the editor will automatically compile the Mini Program. The Demo of the client can be displayed on the left emulator window in real time.

    Modify the client configuration

  7. Click "Login" in the emulator. If "Login Successful" is shown, the activation is completed, and then you can start other development.

    Login test

# Other specific development documents

Specific documents about Demo and SDK for the server and client:

  • Development environment and production environment
  • Self deployment
  • One-stop deployment
  • FAQ
    • How to deploy codes to a development environment
    • How to restart servers
    • How to restore initialization environments
    • How to debug backstage codes remotely
    • How to view backstage logs
    • How to change database passwords
    • How to create and modify database tables
    • How to upload pictures
    • How to deploy a Demo to your server
    • How to quickly create new routes
    • How to configure customer service message push interfaces in the backstage of Weixin
    • How to connect and operate a database using server SDK
    • How to build a development environment locally
  • Server SDK documentation
  • Server SDK API documentation
  • Client SDK documentation
鍙嶉

PHP网站源码宜昌网页设计资阳网站排名优化价格邢台seo网站优化多少钱松岗网站优化按天收费报价临汾如何制作网站观澜网站排名优化哪家好武威建站推荐呼和浩特网站改版推荐鸡西推广网站推荐开封网站推广系统多少钱湖州营销型网站建设价格桂林百度竞价公司果洛建站报价桂林SEO按效果付费公司汉中SEO按天扣费哪家好林芝网络营销公司平湖网站优化按天收费报价岳阳百度竞价包年推广公司甘孜网站优化排名公司大同SEO按天计费报价海东品牌网站设计报价盐田网站设计模板哪家好聊城网站seo优化价格河池关键词排名多少钱临猗网站建设设计报价永新SEO按天扣费报价珠海建站哪家好宣城外贸网站设计固原百度网站优化排名多少钱仙桃SEO按效果付费报价歼20紧急升空逼退外机英媒称团队夜以继日筹划王妃复出草木蔓发 春山在望成都发生巨响 当地回应60岁老人炒菠菜未焯水致肾病恶化男子涉嫌走私被判11年却一天牢没坐劳斯莱斯右转逼停直行车网传落水者说“没让你救”系谣言广东通报13岁男孩性侵女童不予立案贵州小伙回应在美国卖三蹦子火了淀粉肠小王子日销售额涨超10倍有个姐真把千机伞做出来了近3万元金手镯仅含足金十克呼北高速交通事故已致14人死亡杨洋拄拐现身医院国产伟哥去年销售近13亿男子给前妻转账 现任妻子起诉要回新基金只募集到26元还是员工自购男孩疑遭霸凌 家长讨说法被踢出群充个话费竟沦为间接洗钱工具新的一天从800个哈欠开始单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#中国投资客涌入日本东京买房两大学生合买彩票中奖一人不认账新加坡主帅:唯一目标击败中国队月嫂回应掌掴婴儿是在赶虫子19岁小伙救下5人后溺亡 多方发声清明节放假3天调休1天张家界的山上“长”满了韩国人?开封王婆为何火了主播靠辱骂母亲走红被批捕封号代拍被何赛飞拿着魔杖追着打阿根廷将发行1万与2万面值的纸币库克现身上海为江西彩礼“减负”的“试婚人”因自嘲式简历走红的教授更新简介殡仪馆花卉高于市场价3倍还重复用网友称在豆瓣酱里吃出老鼠头315晚会后胖东来又人满为患了网友建议重庆地铁不准乘客携带菜筐特朗普谈“凯特王妃P图照”罗斯否认插足凯特王妃婚姻青海通报栏杆断裂小学生跌落住进ICU恒大被罚41.75亿到底怎么缴湖南一县政协主席疑涉刑案被控制茶百道就改标签日期致歉王树国3次鞠躬告别西交大师生张立群任西安交通大学校长杨倩无缘巴黎奥运

PHP网站源码 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化