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 build Mini Program on CVM

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "how to build Mini Program on a cloud server". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn how to build Mini Program on a cloud server.

1. Prepare domain names, servers, and certificates

Mini Program backend service needs to be accessed through HTTPS. Before we start production, we need to prepare the domain name, server and SSL certificate. After the purchase of the domain name and host is completed, the license is filed first, and then the domain name is resolved to the CVM. The host website provides one-stop application service for domain name, server and certificate. After the examination and approval of SSL certificate, you can download the certificate file to the console and configure the certificate in the server.

two。 Build the development environment of WeChat Mini Programs

If you are not already a Mini Program developer, please register on Wechat public platform first. If you fill in the information and submit the corresponding materials according to the guidelines, you can have your own Mini Program account.

If you have registered, log in to Wechat public platform, and then go to Settings-Development Settings-Server Domain name-modify. After the identity verification is completed by scanning the code, both the request legal domain name and the socket legal domain name are entered in the prepared domain name address. When the configuration is complete, click Save and submit.

3. The project code that runs Mini Program

Download the experimental source code and WeChat Mini Programs development tools. After downloading the source code, please extract it to the local working directory.

After downloading the development tools, install and start them, and then log in using Wechat scan code. After logging in, select the local Mini Program project-add an item and fill in the following:

AppID: enter the AppID of Mini Program. Log in to the public platform and check it in Settings-Development Settings-developer ID.

Project name: fill in any name you like

Project directory: select the supporting source directory that you just extracted (the directory contains app.js)

When you are finished, click add item.

At this point, I believe you have a deeper understanding of "how to build Mini Program on cloud servers". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Development

Wechat

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

12
Report