This should be the serverless cloud function service with the easiest writing experience at present, and it should also be the best in terms of experience (of course, this is for front-end programmers). The 'light service' serverless serverless architecture, the basic and ideal no-service is It's almost the same, but I personally feel that the steps are too big, and the experience is too radical and not tall enough.
First of all, here is the official website address of 'Light Service': https://qingfuwu.cn/, select individual for registration and certification, select the development version, and have free resources.
console
Choose to create a new project. Currently, it supports three languages: node.js, go, and python. You can choose to create a new project according to your own needs. Digression: the node experience is very good.
cloud function
I chose node. The writing experience is basically the same as writing ES6. It queries and returns the table, and the method documentation is particularly clear.
After the cloud function is written, it can be tested locally. After the test is completed, it can be launched online. Through http access, the cloud function can be named in a unified format, which is convenient for axios packaging and calling.
@param params call parameters, HTTP request is the request body (function parameter)
@param context call context
@return The return data of the function, it will be used as the Response Body in the HTTP scene
data management
Data management corresponds to the original server, which is friendly to front-end personnel and operates the database like Excel.
page hosting
After the project is completed, package it here to generate a preview URL, or you can customize your own domain name URL for binding.
client, management
Client: vue3, webpack, element plus; (https://fenghuihui.web.cloudendpoint.cn/)
Management: vue-next-admin