Account Service
This is the Account service
showcase
- Implements basic CRUD API
- Multiple handlers, repositories, subscribers
- Publishing events
- EntORM data access
- Config Managment
- Custom Logging
Usage
Build the binary
make build TARGET=account TYPE=service VERSION=v0.1.1
Run the service
make run-account
# or
go run service/account/main.go
Build a docker image
make docker TARGET=account TYPE=service VERSION=v0.1.1
Test the service
grpcurl -plaintext -protoset <(buf image build -o -) list
grpcurl -plaintext -protoset <(buf image build -o -) describe mkit.service.account.user.v1.UserService
# test Create API directly
grpcurl -plaintext \
-protoset <(buf image build -o -) \
-d '{"username": "sumo", "firstName": "sumo", "lastName": "demo", "email": "sumo@demo.com"}' \
0.0.0.0:8080 mkit.service.account.user.v1.UserService/Create
# test Create API directly with TLS
grpcurl -insecure \
-protoset <(buf image build -o -) \
-d '{"username": "sumo1", "firstName": "sumo1", "lastName": "demo1", "email": "sumo1@demo.com"}' \
0.0.0.0:8080 mkit.service.account.user.v1.UserService/Create
# test List API directly
grpcurl -plaintext \
-protoset <(buf image build -o -) \
-d '{}' 0.0.0.0:8080 mkit.service.account.user.v1.UserService/List