Skip to content

a single micro(v3) based micro-service power business framework starter, to boost first line code ,without system architecture considered,

License

Notifications You must be signed in to change notification settings

micro-community/micro-starter

Repository files navigation

micro starter

micro v3 starter framework

install

go get google.golang.org/protobuf
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install github.com/micro-community/micro/v3/cmd/protoc-gen-micro@latest

## $ export PATH="$PATH:$(go env GOPATH)/bin" (mac only)
## https://grpc.io/docs/protoc-installation/

generate protos

  • make user
  • make role
  • make message #async message

following for graph design for dgraph

make rbac

Coding Style

  • 尽量给全部的代码加上注释,关键函数和类一定要加上注释
  • 代码的文件夹结构尽量展平,不要多层嵌套
  • 文件夹名称全部小写,不使用驼峰
  • 尽量避免长文件和文件夹名称
  • 文件名有多个单词时,使用下划线连接
  • 单词拼写使用 cspell 检查
  • 面向 TDD 开发,关键的 UT 要写

Usage

A Makefile is included for convenience

Build the binary

make build

Run the service

./auth

Build a docker image

make docker

About

a single micro(v3) based micro-service power business framework starter, to boost first line code ,without system architecture considered,

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published