package
0.1.0
Repository: https://github.com/xmlking/grpc-starter-kit.git
Documentation: pkg.go.dev

# README

Account Service

This is the Account service

showcase

  1. Implements basic CRUD API
  2. Multiple handlers, repositories, subscribers
  3. Publishing events
  4. EntORM data access
  5. Config Managment
  6. 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": "[email protected]"}' \
 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": "[email protected]"}' \
 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

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author