zacscoding / go-rest-template

REST API Template/Boilerplate for Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Rest API Base Template

Golang REST API Template/Boilerplate with Gin/Gorm/Fx.

Run with docker

$ make compose.local.up

Check .http files for tests in sample.http

Tests

# Clean test cache, Run go tests and build
$ make tests

Lint

# Run golangci-lint
$ make lint

Build

$ make build
$ tree ./build/bin                                       
./build/bin
└── apiserver

Release

$ make release
# $ make release.local  # for local tests
# $ make release.dry    # for dry run

Relocate project

; TBD

About

REST API Template/Boilerplate for Golang

License:Apache License 2.0


Languages

Language:Go 95.6%Language:Makefile 2.5%Language:Shell 1.1%Language:Dockerfile 0.7%