template for golang project
This is a golang project template realized by using gin web framework and gorm database model, which can be used in online version.
git clone https://github.com/bodii/go-gin-gorm-project-template
bash ./init_project.sh -h
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