Personal boiler plate for starting gin project
.
└── gin-boilerplate/
├── .vscode
├── database/
│ ├── database.go
│ └── migrations/
│ └── // Migrations file goes here
├── dist/
│ └── // Mainly to hold compiled application
├── domains/
│ └── // Your API usecase goes here
├── models/
│ ├── // All models goes here
│ └── structs
├── routes/
│ └── routes.go
├── utils/
│ ├── constants/
│ │ └── // All constants data goes here
│ └── helpers/
│ └── // Helper function goes here
├── .env.example
├── go.mod
├── go.sum
├── main.go
├── Makefile
└── Readme.md
- Clone the repo
- Run
go mod tidy
go mod vendor
- Run
make start
- or Run VSCode Debugger through delve (https://github.com/go-delve/delve)
- Run
make test
- Please create another test suite before adding new feature