Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 751 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 751 Bytes

serverless-go-todo-demo

Build a todo app using golang with serverless framework.

demo

How to start?

  1. Export environvariables. Edit YOUR_BUCKET_NAME.
export DEPLOYMENT_BUCKET=YOUR_BUCKET_NAME
export DYNAMO_REGION=ap-northeast-2
export DYNAMO_TABLE_NAME=go-todo
  1. Create your dynamodb table(go-todo)

  2. 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

Test

$ go test -v $(go list ./... | grep -v vendor) -timeout 15s --count 1 -race -coverprofile=c.out -covermode=atomic

License

MIT License