Build a todo app using golang with serverless framework.
- Export environvariables. Edit YOUR_BUCKET_NAME.
export DEPLOYMENT_BUCKET=YOUR_BUCKET_NAME
export DYNAMO_REGION=ap-northeast-2
export DYNAMO_TABLE_NAME=go-todo
-
Create your dynamodb table(go-todo)
-
Run App
- local
$ go run main.go dev
- serverless
$ export DEPLOYMENT_BUCKET=YOUR_BUCKET_NAME
$ export DYNAMO_REGION=ap-northeast-2
$ export DYNAMO_TABLE_NAME=go-todo
## Build and Deploy
$ make deploy
$ go test -v $(go list ./... | grep -v vendor) -timeout 15s --count 1 -race -coverprofile=c.out -covermode=atomic