WeChat applet php, nodejs environment configuration

php environment configuration:

1. Use the WeChat developer tool to create a small program project, and select the code folder downloaded in the third step. Then open the server/ config.php  file. Modify the MySQL database password inside to your applet AppID (or the MySQL password you set for yourself).

2、

3. After uploading the code, click the [Details] button in the upper right corner, and then select [Tencent Cloud Status] to see the domain name of the development environment that Tencent Cloud automatically assigns to you.

4. Completely copy (including  https://) the development environment request domain name, then open the file in the editor,  client/config.js fill in the copied domain name  host and save it. After saving, the editor will automatically compile the applet, and the simulator window on the left will display it in real time. Demo of the client


5. Click [Login] in the simulator, and see the display "Login successful", that is, the activation is completed, and you can start your other development.



The nodejs environment configuration is the same as the php steps

The difference is that step 1 and step 2

1. Use the WeChat developer tool to create a small program project, and select the code folder downloaded in the third step. Then open the server/config.js  file. Modify the MySQL database password inside to your applet AppID (or the MySQL password you set for yourself).

2. Select [Module Upload] and check all options, then check [Automatically install dependencies after deployment], and click [OK] to start uploading the code.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325902424&siteId=291194637