A starter project with Golang, Gin and DynamoDB
Golang Gin boilerplate with DynamoDB resource. Supports multiple configuration environments.
This project use a DynamoDB base docker image.
Setup DynamoDB dependency: docker run -d -p 8080:8080 vsouza/dynamo-local --port 8080
.
├── Makefile
├── Procfile
├── README.md
├── config
│ ├── config.go
│ ├── development.yaml
│ ├── production.yaml
│ └── test.yaml
├── controllers
│ └── user.go
├── db
│ └── db.go
├── forms
│ └── user.go
├── header.jpg
├── main.go
├── middlewares
│ └── auth.go
├── models
│ └── user.go
└── server
├── router.go
└── server.go
Install Godeps
go get github.com/tools/godep
then run:
make deps
curl http://localhost:8888/health
Running DynamoDB on Docker Image:
check this project: vsouza/docker-dynamoDB-local
Setup Glide:
- 0.0.1
- Configuration by environment, Auth and Log middlewares, User entity.
Vinicius Souza – @iamvsouza – hi@vsouza.com
Distributed under the MIT license. See License for more information.