[go: nahoru, domu]

Skip to content

shrhawk-entertainer/go_lang_api

Repository files navigation

Go Gin Boilerplate

A starter project with Golang, Gin and DynamoDB

[![Build Status][travis-image]][travis-url] codebeat badge [![Go Version][go-image]][go-url] [![License][license-image]][license-url] FOSSA Status

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

Install Godeps

go get github.com/tools/godep

then run:

make deps

Usage example

curl http://localhost:8888/health

Development setup

Running DynamoDB on Docker Image:

check this project: vsouza/docker-dynamoDB-local

Setup Glide:

Glide Package Management

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published