- Build serverless
- Stage serverless
- Environment serverless
- PostgreSQL(GORM)
- Migrations(GOOSE)
- JWT
- Test
- 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/goose/cmd/goose
Environment Migrations
$ mv db/dbconf.example.yml db/dbconf.yml
Migrations UP
$ goose -env development up
Install dep
$ go get -v github.com/golang/dep/cmd/dep
Install the project's dependencies
$ dep ensure
Deploy
$ serverless deploy