Tencent low-code local construction practice

Construct

Yesterday, the group felt that the low-code need to build is too cumbersome and unnecessary. Real-time preview is better, but Tencent’s low-code needs to be built. During the construction process, you need to install low-code related npm packages, which is actually the code distribution process. After the build is completed, an application will be installed in its own cloud development environment.
The official build is relatively simple with three commands

npm install -g @cloudbase/cli
tcb login
tcb lowcode watch

Insert picture description here
That’s what I said, but in the course of practice, after a day of tossing, I didn’t succeed. Later, under the guidance of Tencent’s engineers, I finally succeeded in the
first step to change the source. At the beginning, I changed the source of Taobao. Various errors were reported, so I switched to Tencent’s source, changing the source is mainly to solve the problem of package installation speed

npm config set registry http://mirrors.cloud.tencent.com/npm/

Then you need to install the lowcode plugin separately

npm i @cloudbase/framework-plugin-low-code@latest -g

Start building after everything is ready, you first need to open the console monitoring command

tcb lowcode watch

Then click the preview release button and
Insert picture description here
select the deployment method as local. After the deployment platform is
Insert picture description here
successfully built for the web page H5 , return to the QR code page to indicate success. I
Insert picture description here
also learned a trick from Tencent engineers, how to verify that a website is not working

curl https://mirrors.tencent.com/npm/

I always thought that ping is about learning a little bit every day, and the more you accumulate, the more knowledge

Guess you like

Origin blog.csdn.net/u012877217/article/details/112724012