Golang reusable API boilerplate with:
- Gin
- GORM
- Swagger docs
- Manual migrations
- Seeders
- JWT Authentication
- Account Registration
- Encrypted passwords
- Docker
- Add tests
- Telemetry
- Go 1.19
- Docker
- Docker Compose
Copy the file .env.example
to .env
and fill in the values.
See config/config.go
for more details.
Run: go install github.com/swaggo/swag/cmd/[email protected]
to install the swagger documentation generator.
make up
make build
./api db setup
OR
./api db migrate
./api db seed
PS: Migrations are automatically run on serve
command, but seeding is not.
./api serve
I, Elias Feijó, had to create an API for a personal project from scratch, and decided to make it reusable.
I was inspired by some of the code in bancodobrasil repositories, such as featws-api and goauth, some of those I've contributed and even was the solo maintainer. Changed a lot of things, but I'm still grateful for the inspiration.
Hope you enjoy it!