【文件属性】:
文件名称:serverless-go:无服务器运行
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-12 17:24:53
golang aws-lambda serverless Go
无服务器运行
无服务器构建
无服务器阶段
无服务器环境
PostgreSQL(GORM)
移民(GOOSE)
智威汤逊
测试
CI(Gitlab-CircleCI)
Environment
$ mv serverless.env.example.yml serverless.env.yml
Install serverless globally
$ npm install serverless -g
Add credentials
$ serverless config credentials --provider aws --key AWS_KEY --secret AWS_SECRET
Add dependencies
$ npm install
Install goose
$ go get -u bitbucket.org/liamstask/go
【文件预览】:
serverless-go-master
----Gopkg.toml(744B)
----.gitignore(266B)
----functions()
--------main.go(969B)
----package.json(519B)
----Makefile(75B)
----serverless.yml(482B)
----package-lock.json(374B)
----src()
--------datastore()
--------middleware()
--------render()
--------models()
--------routers()
--------error()
--------infra()
--------handlers()
----db()
--------migrations()
--------dbconf.example.yml(189B)
----main.go(545B)
----README.md(875B)
----serverless.env.example.yml(149B)
----Gopkg.lock(2KB)