micro-kit

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT

README

Monorepo and Microservices kit using micro/micro for @kzmake

※あくまで自分用です

  • クリーンアーキテクチャ(を意識したレイヤードアーキテクチャ)
  • マイクロサービス
  • モノレポ
  • 軽量DDD

Roadmap

  • Monorepo
  • Microservices with micro/go-micro
  • gRPC microservices
  • Support HTTP-API
  • Support CLI
  • Support NATS
  • Kubernetes with Kustomize
  • Input Validation with PGV
  • Linting Protos with Buf
  • Observability
  • Building/Testing with Bazel
  • Support gRPC reflection API

Getting Started

Init
git clone https://github.com/kzmake/micro-kit.git $GOPATH/src/github.com/kzmake/micro-kit
cd $GOPATH/src/github.com/kzmake/micro-kit
go mod download
Service Discovery
# install
go get -v go.etcd.io/etcd
# or
brew install etcd

# run
etcd
# or
brew servces start etcd
Client
# install
go get -u github.com/micro/micro/v2

# run
micro --version
Run
make task/run
Request
# use micro
micro call task Task.Create '{"description": "hoge"}'

# use grpcurl
grpcurl -plaintext -proto service/task/interface/proto/service.proto -d '{"description": "hogehoge"}' localhost:3000 task.Task/Create

Credits

Jump to

Keyboard shortcuts

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