Do I have to purchase Tencent Cloud as a server for the Mini Program production environment?

Original link: Do I have to purchase [Tencent Cloud](https://l.gushuji.site/tencent) as a server for the production environment of the applet?

Do I have to purchase Tencent Cloud as a server for the Mini Program production environment ?

The answer is: No!

I believe that many developers are led to Tencent Cloud by the link of the Mini Program Management Center , but friends who have a little knowledge of various clouds are immediately dumbfounded, look at the following picture:

This is the price! Simply bullying Xiaobai! ! !

        So the question is, do I have to buy Tencent Cloud 's applet server?

        There are mainly two key points involved here: 1. Where is the front end of the applet? 2. Where is the back end of the applet?

        Let me explain the second question first, where is the back end of the applet? Friends who have previous back-end development experience should not be stumped by this problem, yes, the back-end can be placed on any other domestic server, only need to bind a domain name starting with https (second-level domain name is also possible), and then Configure the ssl digital certificate (generally, after successfully applying for the ssl certificate, it will prompt how to download and configure ssl, if not, please Baidu by yourself). The last step is to configure the domain name of the Mini Program Management Center server:

Some friends said that QCloud_WeApp_SDK is not included in the official demo. Does this need to be integrated into the back-end code? No, this is the SDK of Tencent Cloud Server. We don't need it. The back-end SDK can be written by ourselves. To put it bluntly, the back-end processes the front-end request and returns the result, which has nothing to do with the applet.

        Let me explain the first question, where is the front end of the applet?

        We know that the front-end and back-end of traditional website construction are placed on the same server, and the front-end is accessed through domain names. Is this the same for small programs? Or, the front end of the applet must be placed on a server that can run the WeChat applet? How to set up this server? It doesn't seem to work! ! ! Can I only buy Tencent Cloud servers?

        In fact, you think too much, the front end of the applet is actually very simple, just upload it through the developer tool!

You read it right, it's as simple as that. You don't need to care about where the front-end code goes, and you don't need to create a domain name as the entrance. The applet has its own special entrance. As for the SDK, you can write it yourself, not just some Log in, upload, and other functions, just look at the applet api and get it right away.

        Therefore, the development of small programs is relatively free, and it is clear that it is the same as other development.

Guess you like

Origin blog.csdn.net/NicolasLearner/article/details/112308250