Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.29 KB

README.MD

File metadata and controls

36 lines (29 loc) · 1.29 KB

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.