An opinionated starter for Go Backend projects using:
gin-gonic/gin
as the REST frameworklogrus
for loggingviper
for configsDocker
for containerization
To be added:
sqlc
for type-safe SQL Go code generationgolang-migrate/migrate
for migrationjwt
authenticationcasbin
authorizationprometheus
monitoring
Run make docker-build-run
to build the command and run the container. Note that the port is set as 8080 by default.
Verify by checking localhost:8080/ping
. You should receive a pong
Feel free to raise a PR with one of the features from "To be added" section.
If you want a new feature PR, raise an issue to discuss about it.