Giter VIP home page Giter VIP logo

micro-todolist's Introduction

micro-todolist

该项目是一个基于Go-Micro框架实现的简单备忘录微服务应用

主要功能

  • 用户注册登录(jwt-go 鉴权)
  • 新增/删除/修改/查询 备忘录

项目架构

micro-todolist

micro-todolist/
├── app                   // 各个微服务
│   ├── gateway           // 网关
│   ├── task              // 任务模块微服务
│   └── user              // 用户模块微服务
├── config                // 配置文件
├── consts                // 定义的常量
├── idl                   // protoc文件
│   └── pb                // 放置生成的pb文件
├── pkg                   // 各种包
│   ├── ctl               // 用户操作
│   ├── e                 // 统一错误状态码
│   └── util              // 各种工具、JWT等等..
└── types                 // 定义各种结构体

gateway 组件

gateway/
├── cmd                   // 启动入口
├── http                  // HTTP请求头
├── middleware            // 中间件
├── router                // http 路由模块
├── rpc                   // rpc 调用
└── wrappers              // 熔断

服务组件

task/
├── cmd                   // 启动入口
├── service               // 业务服务
├── repository            // 持久层
│    ├── db               // 视图层
│    │    ├── dao         // 对数据库进行操作
│    │    ├── redis       // 缓存操作
│    │    └── model       // 定义数据库的模型
│    └── mq               // 放置 mq
├── script                // 监听 mq 的脚本

项目主要依赖

Golang V1.18

  • Gin
  • Gorm
  • go-micro
  • protoc
  • grpc
  • ini
  • hystrix
  • jwt-go
  • crypto
  • go-redis
  • ratelimit

运行命令

  1. 启动环境
make env-up
  1. 安装依赖
go mod tidy
  1. 运行服务
make run

导入 Postman 接口文档

直接导入即可

micro-todolist's People

Contributors

lr13-2002 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.