Code Monkey home page Code Monkey logo

minerva's Introduction

minerva

Welcome to your advice

使用方式:

使用了go-micro的网关 注册中心使用的consul(使用别的请替换)

  1. 更改config/env.yaml的配置

  2. 开启 go-micro 网关
    MICRO_REGISTRY=consul micro api --handler=http --address={address} --namespace=personal.icymoon

  3. 运行服务
    MICRO_REGISTRY=consul go run src/server/main.go

目录

  • config - 配置文件
  • docs - 文档
  • log - 日志
  • src - 源码
    • common - 公用的一些代码
    • http
      • controller - 控制器
      • middleware - 中间间
    • logic - 处理逻辑 相当于services
    • model - model层
    • routes - 路由文件
    • server - 启动文件
    • service - 对接其他服务的文件

更新记录

  • v0.1
    搭建项目
  • v0.2
    使用Echo做路由的转发器
  • v0.3
    集成xorm + mysql
  • v0.4
    中间件jwt登录及session存储
  • v0.5
    redis对接,并完成test文件
  • v0.6
    go-micro 服务注册完成,替代原始的echo启动
  • v0.7
    基于rabbitmq做tcc事务
  • v.8
    集成logrus 并将日志按照日期/类型输出到文件中

Used

xorm
echo
go-micro
rabbitmq
consul logrus ..

minerva's People

Stargazers

 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.