/refactor_user_ms

Refactor user_ms repository

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Refactor user_ms

This repository is a refactor of user_ms repository, I just want to apply my new learning and compare to my old self so I keep old repository and create a new one

Todo

Re-Implement User service

Re-Implement Authentication service

Intergrate between two services

Make structure for application to easy to implement new gRPC server and HTTP server

Run gRPC and HTTP same port

Implement and support multiple logger such as zap, logrus, ...

Implement and support multiple database driver or ORM such as gorm, ent, pg, ...

Log all error in service and repository

All knowledge is gathered on the internet

https://cloud.google.com/apis/design/errors

https://jbrandhorst.com/post/grpc-errors/

https://mycodesmells.com/post/grpc-gateway-error-handler

https://medium.com/@apzuk3/input-validation-in-golang-bc24cdec1835

https://grpc-ecosystem.github.io/grpc-gateway/docs/tutorials/adding_annotations/

https://github.com/johanbrandhorst/grpc-gateway-boilerplate

https://github.com/philips/grpc-gateway-example/blob/master/cmd/serve.go#L51