Skip to content

a single micro(v3) based micro-service power business framework starter, to boost first line code ,without system architecture considered, if you wanna full starter-kit with system design, go to our repo : https://github.com/micro-in-cn/starter-kit

License

Notifications You must be signed in to change notification settings

isgasho/micro-starter

 
 

Repository files navigation

micro starter

micro v3 starter framework

micro(v3) 微服务能力集框架,有兴趣的朋友,热烈欢迎 PR.

install

go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/micro/v3/cmd/protoc-gen-micro

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, if you wanna full starter-kit with system design, go to our repo : https://github.com/micro-in-cn/starter-kit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 94.1%
  • Makefile 2.5%
  • Shell 2.3%
  • Dockerfile 1.1%