Skip to content

novemberde/go-serverless-demo

Repository files navigation

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

About

Build a todo app using golang with serverless framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published