Giter VIP home page Giter VIP logo

isgasho / micro-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from micro-community/micro-starter

0.0 1.0 0.0 447 KB

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

Dockerfile 1.13% Makefile 2.49% Go 94.04% Shell 2.35%

micro-starter's Introduction

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

micro-starter's People

Contributors

crazybber avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.