Go Gin Boilerplate
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
Boilerplate structure
.
βββ 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
Installation
make deps
Usage example
curl http://localhost:8888/health
Development setup
Running DynamoDB on Docker Image:
check this project: vsouza/docker-dynamoDB-local
Release History
- 0.0.1
- Configuration by environment, Auth and Log middlewares, User entity.
Meta
Vinicius Souza β @iamvsouza β [email protected]
Distributed under the MIT license. See License for more information.