Simple Auth Service build with gRPC in Go.
- protobuf && grpc for gRPC library.
- validator for validate incoming request.
- mysql-driver for realtional SQL driver.
- uuid for user unique identifier.
- zerolog for service logging.
- viper for env configuration.
- bcrypt for password hashing.
- testify && mockery for unit testing and mocking.
$ make update-proto
$ make test
Make sure you have MySQL tb_user
table fisrt. Check in /config/db/dump.sql for definition.
$ go mod tidy
$ cp config.yaml.example config.yaml
$ nano config.yaml # modify your .env here
$ go run main.go