This is the seventh day of my participation in the August More text Challenge. For details, see:August is more challenging
preface
Recently, I was studying various cloud services of Serverlee. When DEBUGGING, I found that it needs to be uploaded to the movement, and it needs to wait 2-5 seconds. All kinds of inconveniences
What is a uniCloud
UniCloud is a cloud development platform based on Serverless model and JS programming provided by DCloud in cooperation with Ali Cloud and Tencent Cloud.
UniCloud Web console address: unicloud.dcloud.net.cn
The value of uniCloud
-
For programmers, from now on you get a new skill, with familiar JS, easy to get the whole business front and back.
-
For developers:
- The development cost is greatly reduced, the development efficiency is greatly improved, and the speed of launching and iteration is greatly accelerated;
- If you’re a startup, you’ll save hundreds of thousands of dollars a year by not hiring server engineers like PHP or Java.
- If you already have a full stack of PHP and JS, switching to a new technology stack can greatly improve development efficiency and reduce costs.
- You just need to focus on your business. You don’t need to worry about other server operation and maintenance, flexible capacity expansion, large concurrent hosting, and anti-ddos attacks.
- In addition to development costs, the cost of renting cloud resources will also drop dramatically
- If you do not release H5, you will not need to purchase a registered domain name. Small programs and apps can use the server without domain name;
Doesn’t that look attractive? Let’s go
1. Download HBuildex
Download address: www.dcloud.io/ installation is relatively simple, please install, I downloaded the following version
The general learning process is to imitate first, then we will learn demo, open the plug-in market
ext.dcloud.net.cn/
The uni-starter template I downloaded here is a login and registration template of mobile terminal. This template is produced by the official front end team, and the quality is guaranteed. You can directly import hbuildx
At this time your directory is as follows
Right click on the Run Cloud Space Wizard in your unicloud directory here
Then directly register users, create space can (here space recommended to choose Ali cloud, because it is free, the quality is relatively better)
Upload all cloud function public module actions
At this point the basic project is initialized. Click run
Cloud console
UniCloude right click
Database data, table structure, cloud function at a glance, really fragrant
Results the following
A few tips
- Click the preview in the upper right corner to open the built-in browser for debugging
- You can link to local cloud functions, which means you can see the effect immediately after making changes (666)