Gin Starter is a microservices boilerplate with RS256 JWT
It comes pre-configured with :
- Gin Gonic Router (https://github.com/gin-gonic/gin)
- JWT-GO (https://github.com/dgrijalva/jwt-go)
- Testify (https://github.com/stretchr/testify)
- Jaeger (https://github.com/uber/jaeger-lib)
- Jaeger Client for Go (https://github.com/uber/jaeger-client-go)
- Redigo (https://github.com/gomodule/redigo)
- GORM (https://gorm.io/gorm)
- Google Pub Sub (https://cloud.google.com/go/pubsub)
- Go SQL Mock (https://github.com/DATA-DOG/go-sqlmock)
- Go Humanize (https://github.com/dustin/go-humanize)
- Golang Mock (https://github.com/golang/mock)
- Google UUID(https://github.com/google/uuid)
- Env Decode(https://github.com/joeshaw/envdecode)
- godotenv (https://github.com/joho/godotenv)
- Mailgun (https://github.com/mailgun/mailgun-go/v4)
This starter also contains pre-developed API such as user and cms authentication, backend cms, forgot password feature, otp and more.
Use this command to install the blueprint
go get github.com/rifqiakrm/golang-gin-starter
or manually clone the repo and then run go run main.go
.
- Read Prerequisites.
- Then, read How to Run.
- Read Prerequisites.
- Then, read Development Guide.
$ make tidy
$ make cover
To run integration test, we need to start all dependencies needed. We provide all dependencies via Docker Compose. Make sure to install Docker Compose before running integration test.
Also, we need to build the docker image for golang-gin-starter first.
$ make compile-server
$ make docker-build-server
After that, run all images needed using docker-compose
and run the integration test.
$ docker-compose up
$ make test.integration
Read Deployment.
TBD
TBD
- Read FAQs