Skip to content

OAuth2 Ory Hydra Golang Identity Provider. Account management microservice. Clean Architecture. SOLID principles. Unit Test. Table Driven tests. Mock.

Notifications You must be signed in to change notification settings

M3ikShizuka/service-account

Repository files navigation

Service Account

User's account management service.

Deployment

Deploy to Kubernetes with k8s-microservices.

Configurations

Change params in configs/config.yml file if necessary to run the service locally (usually for develop and debug).
Use environment variables to set parameters when you deploy the service in a kubernetes cluster.

Unit tests

make test-unit

Generate Swagger API (OpenAPI) from code

Install swag

make swagger-install

Generate API

make swagger-generate-api-doc

Open site: yourdomain/swagger/index.html

Libs

  • Argon2id - user account password hash algorithm for store in database.
  • gorm - ORM library.
  • viper - configuration.
  • zap - logging.
  • gomock - mocking framework.
  • go-sqlmock - Sql mock driver for golang to test database interactions.
  • swag - Automatically generate RESTful API documentation with Swagger 2.0 for Go.

About

OAuth2 Ory Hydra Golang Identity Provider. Account management microservice. Clean Architecture. SOLID principles. Unit Test. Table Driven tests. Mock.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published