Skip to content

bodii/go-gin-gorm-project-template

Repository files navigation

Guide for project

template for golang project

Getting Started

This is a golang project template realized by using gin web framework and gorm database model, which can be used in online version.

1.step: Clone project

git clone https://github.com/bodii/go-gin-gorm-project-template

2.step: Init project

bash ./init_project.sh -h

3.set the daemon on the release version

daemon setting guide


MakeFile

run all make commands with clean tests

make all build

build the application

make build

run the application

make run

Create DB container

make docker-run

Shutdown DB container

make docker-down

live reload the application

make watch

run the test suite

make test

clean up binary from the last build

make clean

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published