在安装好了nodecap (a poem)vueAfter the scaffolding,It's time to find an example and run it locally
Take mpvue answer applet project source code/mpvue wechat applet demo for example
Download Address:/423555593/
1: Open the link and download the project locally
Code cloud and github download the same way, are pointing to the above picture in the copy button, in the local folder right click git bash here with the command git clone + copied down the address, press enter to appear in the picture below 100% is already on the line to download the project to local!
2: Use git or cmd to enter the project directory, install the dependencies, in order to avoid the slow speed of foreign servers, we use the domestic Taobao mirror installation.
cnpm install
Install dependencies, which can be seen in
3: After the installation is complete, enter the run command
npm run dev
When installing the preview, instead of opening it in a browser and typing: localhost:8080. open the WeChat developer tool and import the project root directory into it.
cncnpm
If you don't have an appID when importing the project, you can use a test number so that the project will run.