account

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 20 Imported by: 0

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": "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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL