Easily extendible RESTful API boilerplate aiming to follow idiomatic go and best practice.
The goal of this boiler is to have a solid and structured foundation to build upon on.
The following feature set is a minimal selection of typical Web API requirements:
- CLI features using cobra
- ORM support including migrations using gorm
- Base APP with echo and middleware
- JWT Authentication using jwt-go
- Clone this repository
- Setting your Database and Token secret key in config
- Build the application:
go build
to createvermouth
binary or usego run main.go
instead in the following commands - Run
vermouth
for cobra generated help message. - Run the application:
vermouth serve
the default port is 8080 - Or
vermouth serve -p [port]
- Or
vermouth serve --port [port]
Any feedback are welcome and highly appreciated.