Skip to content

macdao/ddd-tactical-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDD Tactical Template

Keywords:

  • DDD
  • Hexagonal Architecture

Assumptions

  • the company domain is macdao.com
  • the project code is ecommerce
  • the bounded context name is order

Details

本章节描述细节。

项目的包(Package)命名

因为公司/组织域名是macdao.com,而项目名称是ecommerce,所以项目的包名是com.macdao.ecommerce

限界上下文(Bounded Context)的包命名

限界上下文应该有独立包。我们以context名称来表示限界上下文的包。比如com.macdao.ecommerce.context表示是限界上下文(领域模型)的包。与此对应的是Web的BFF的包:com.macdao.ecommerce.web.bff和OpenAPI的API Gateway的包:com.macdao.ecommerce.openapi.apigateway

订单上下文的包为com.macdao.ecommerce.context.order,支付上下文的包为com.macdao.ecommerce.context.payment

聚合

domain.model.order

应用

application

adapter

mysql, api

common

flyway file naming

src/main/resources/db/migration

DB Naming

数据库,表,字段

Tasks

  • contract test
  • deps mock server
  • unit
  • combo adapter
  • multi context in one service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages