# ddd-framework **Repository Path**: shotacon/ddd-framework ## Basic Information - **Project Name**: ddd-framework - **Description**: 领域驱动设计落地实现基础脚手架 - **Primary Language**: Java - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2022-11-20 - **Last Updated**: 2022-11-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ddd-framework

GitHub Watchers GitHub Stars GitHub Forks

中文简体 | English

## Introduction > ddd-framework It is a development scaffold based on Domain Driven Design. It has high expansibility and can deal with the architecture of large and complex systems. Adopt [front](https://github.com/ken-xue/ddd-framework-vue) and [back-end](https://github.com/ken-xue/ddd-framework) separate development and provide [code generator](https://github.com/ken-xue/ddd-framework-maven-plugin) ## Architecture ### Application Layer ![img](./doc/ddd-layer.png) ### Directory Structure ``` ddd-framework ├─core 核心模块 │ ├─acl 防腐层 │ ├─adapter 控制层 │ ├─application 应用层 │ ├─core-client 核心二方包 │ ├─domain 领域层 │ ├─share-dataobject 全局共享数据对象 │ └─infrastructure 基础设施层 ├─extensions 外部拓展 │ └─acl-impl acl实现 ├─client 二方包 ├─core 启动类 ├─dependencies 依赖管理 └─doc 文档数据 ``` ## QuickStart 1.Direct clone project use ```bash git clone https://github.com/ken-xue/ddd-framework.git cd ddd-framework mvn clean install ``` 2.Created by Maven archetype ```bash # 1.Download code git clone https://github.com/ken-xue/ddd-framework.git cd ddd-framework mvn clean install # 2.Create archetype mvn archetype:create-from-project cd target/generated-sources/archetype mvn clean install # 3.Creating projects from archetype mvn archetype:generate -DarchetypeCatalog=local ``` - If you encounter mapstruct problems, please set the following settings in idea Setting->Build,Execution,Deployment->Compiler->User-local build ```shell -Djps.track.ap.dependencies=false ``` ## CodeGenerator 1.create you database table 2.import maven dependency ```xml io.ddd.framework ddd-framework-maven-plugin 1.0.2-SNAPSHOT com.mysql.cj.jdbc.Driver jdbc:mysql://127.0.0.1:3306/ddd_framework root 123456 ./ sys_,biz_ sys io.ddd.framework sys_user,sys_menu id,uuid,creator,modifier,gmt_create,gmt_modified,deleted 麦奇 biaogejiushibiao@outlook.com ``` 3.execute cmd ```shell mvn ddd-framework:generate ``` 4.clean last time code ```shell mvn ddd-framework:delete ``` 5.perfect ! success generate code in you project path ! enjoy ! maven plugin source code see ## Document - [design document]() ## License MIT see [LICENSE](./LICENSE). welcome!