Account Service
This is the Account service
showcase
- Implements basic CRUD API
- Multiple handlers, repositories, subscribers
- Publishing events
- GORM data access
- Config Managment
- Custom Logging
Configuration
- FQDN: mkit.service.account
- Type: service
- Alias: account
Usage
A Makefile is included for convenience
Build the binary
make build TARGET=account TYPE=service VERSION=v0.1.1
Run the service
make run-account
make run-account ARGS="--server_address=:8080"
# or
go run service/account/main.go service/account/plugin.go
Build a docker image
make docker TARGET=account TYPE=service VERSION=v0.1.1
Test the service
micro call mkit.service.account UserService.Create \
'{"username": "sumo", "firstName": "sumo", "lastName": "demo", "email": "sumo@demo.com"}'
micro call mkit.service.account UserService.Create \
'{"username": "sumo1", "firstName": "sumo1", "lastName": "demo1", "email": "sumo1@demo.com"}'
micro call mkit.service.account UserService.List '{}'