云函数

代码会储存在云端,并且在托管环境中运行。

开发步骤
第 1 步:创建目录和云函数文件
第 2 步:发布云函数
第 3 步:调用云函数
详细参照官方文档

https://docs.cloudbase.net/cloud-function/quick-start

静态网站托管

CloudBase 静态网站托管可以为您的 Web 应用、静态资源提供快速、安全的托管服务

准备工作
拥有腾讯云账号;
创建云开发环境,获得 环境 ID;
安装 Node.js;
安装 Cloudbase CLI。

第 1 步:开通静态网站托管
第 2 步:写一个简单的 HTML
第 3 步:部署静态文件到 CloudBase
详细参照官方文档

https://docs.cloudbase.net/hosting/quick-start

Node.js SDK API 参考

https://docs.cloudbase.net/api-reference/server/node-sdk/introduction

拓展
腾讯云的Serverless:微信云开发与Cloudbase与SCF

https://zhuanlan.zhihu.com/p/352729702

云开发视频

https://cloud.tencent.com/document/product/876/47088

api document
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/storage/downloadFile/server.downloadFile.html

github 案例
all

https://github.com/orgs/TencentCloudBase/repositories?type=all
三个小案例
https://cloudbase.net/community/guides/serverless-quickstart/three-examples.html
return db
https://github.com/vczero/CloudPhoto/blob/master/cloudfunctions/add_item/index.js

https://www.cnblogs.com/bidong/p/15714081.html