TCB Express-Like Router
利用腾讯云开发的云函数功能,部署自己的公网云服务。像用Express开发Web服务一样简单,并且提供了本地debug工具,该工具同样可以用于部署在服务器上。
How to create & build
Install
npm install tcf-router -g
// or
yarn global add tcf-router
Create Project
tcf new my-tcf-project
(optional)Create another cloud function
tcf create
Run
tcf dev
Now you can see what happened in your browser
Config your local service
{
"appPath": "./functions",
"functionEnvVariables": {
"STAGE": "LOCAL"
},
"context": {
"appId": "wx7ce310ee1e4efd39",
"uin": "mockuintinkcai831",
"envId": "local"
},
"devServer": {
"port": 8081,
"https": false
}
}
TODO
- layer management(Create/Version)
CI/CD integration (WIP)
- secretID/Key config file management
- before/after deployment hooks
- check & deploy
- gitlab-ci.yml template
- visibility of functions
- execution of functions