Giter Club home page Giter Club logo

ddd-template's Introduction

ddd-template

六边形领域驱动项目架构模板,完善中

项目结构

  • docs 文档
  • configs 配置文件
  • graphql graphql文件
  • internal
    • adapters 适配器代码
      • mock mock代码
      • repository 存储器
      • store 缓存
    • application 应用层
      • command 写入操作
      • query 查询操作
      • transform 实体转成返回对象
      • schema api返回表单
    • domain 领域层
    • service 服务入口
      • controller 控制器
        • handler 接口处理
        • middleware http中间件
      • graph graphQL入口
    • rely 项目启动依赖配置和系统变量

运行

go run . --config configs/config.yaml

部署

sh deploy.sh

单元测试

sh run_unit_test.sh

生成mock代码

make -f ./makefile mockgen

生成EC256

openssl ecparam -genkey -name prime256v1 -noout -out access_token_key.pem
openssl ec -in access_token_key.pem -pubout -out access_token_pub.pem
openssl ecparam -genkey -name prime256v1 -noout -out refresh_token_key.pem
openssl ec -in refresh_token_key.pem -pubout -out refresh_token_pub.pem

感谢JetBrains的开源许可证书支持

JetBrains

ddd-template's People

Contributors

xjellyx 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.