项目作者: takashabe

项目描述 :
DDD like architecture sample application
高级语言: Go
项目地址: git://github.com/takashabe/go-ddd-sample.git
创建时间: 2017-12-05T13:54:44Z
项目社区:https://github.com/takashabe/go-ddd-sample

开源协议:MIT License

下载


go-ddd-sample

This is sample application for like the DDD architecture.

Design

  • application
    • Write business logic
  • domain
    • Define interface
      • repository interface for infrastructure
    • Define struct
      • Entity struct that represent mapping to data model
  • infrastructure
    • Implements repository interface
    • Solves backend technical topics
      • e.x. message queue, persistence with RDB
  • interfaces
    • Write HTTP handler and middleware

References: