# dddplus
**Repository Path**: pure_qsh/dddplus
## Basic Information
- **Project Name**: dddplus
- **Description**: DDDplus 是一套轻量级业务中台开发框架,以DDD思想为基础,致力于业务资产的可沉淀和可传承,全方位解决复杂业务场景的扩展问题,实现中台核心要素,赋能中台建设
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: https://www.oschina.net/p/dddplus
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 75
- **Created**: 2023-07-21
- **Last Updated**: 2023-07-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
DDDplus
A lightweight DDD(Domain Driven Design) Enhancement Framework for complex business architecture.
[](https://github.com/funkygao/cp-ddd-framework/actions?query=branch%3Amaster+workflow%3ACI)
[](https://funkygao.github.io/cp-ddd-framework/doc/apidocs/)
[](https://search.maven.org/search?q=g:io.github.dddplus)

[](https://codecov.io/gh/funkygao/cp-ddd-framework)
[](https://github.com/heynickc/awesome-ddd#jvm)
[](https://gitter.im/cp-ddd-framework/community)
Languages: English | [中文](README.zh-cn.md)
----
## What is DDDplus?
DDDplus, originally cp-ddd-framework(cp means Central Platform:中台), is a lightweight DDD Enhancement Framework for complex business architecture.
>It captures DDD missing concepts and patches the building block. It empowers building domain model with forward and reverse modeling. It visualizes the complete domain knowledge from code. It connects frontline developers with (architect, product manager, business stakeholder, management team). It makes (analysis, design, design review, implementation, code review, test) a positive feedback closed-loop. It strengthens building extension oriented flexible software solution. It eliminates frequently encountered misunderstanding of DDD via thorough javadoc for each building block with detailed example.
In short, the 3 most essential `plus` are:
1. provide [extension point](/dddplus-spec/src/main/java/io/github/dddplus/ext) with multiple routing mechanism, suited for complex business scenarios
2. [patch](/dddplus-spec/src/main/java/io/github/dddplus/model) DDD building blocks for pragmatic forward modeling, clearing obstacles of DDD implementation
3. offer a reverse modeling [DSL](/dddplus-spec/src/main/java/io/github/dddplus/dsl), visualizing complete domain knowledge from code
## Current status
Used for several complex critical central platform projects in production environment.
## Quickstart
### Showcase
[A full demo of DDDplus forward/reverse modeling ->](dddplus-test/src/test/java/ddd/plus/showcase/README.md)
### Forward modeling
```xml
io.github.dddplus
dddplus-runtime
```
#### Integration with SpringBoot
```java
@SpringBootApplication(scanBasePackages = {"${your base packages}", "io.github.dddplus"})
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class);
}
}
```
### Reverse Modeling
```xml
io.github.dddplus
dddplus-visualization
```
Annotate your code With [DSL](/dddplus-spec/src/main/java/io/github/dddplus/dsl), DDDplus can render domain model in multiple view.
```java
class ReverseModelingTest {
ReverseEngineeringModel model;
@Test
void visualizeDomainModel() {
model = new DomainModelAnalyzer()
.scan("{your module root}")
.analyze();
new PlantUmlRenderer()
.build(model)
.classDiagramSvgFilename("model.svg")
.render(); // read-only searchable graph
new PlainTextRenderer()
.build(model)
.targetFilename("model.txt")
.render(); // mutable, integrated with forward modeling design process
new CallGraphRenderer()
.targetDotFilename("callgraph.dot")
.build(model)
.render(); // the call graph of your domain model
}
}
```
### Architecture Guard
```xml
io.github.dddplus
dddplus-enforce
test
```
Enable it by writing unit test and integrate it with CI flow.
```java
class ArchitectureGuardTest {
@Test
void enforcement() {
new DDDPlusEnforcer()
.scanPackages("${your base package}")
.enforce();
}
}
```
## Contribution
You are welcome to contribute to the project with pull requests on GitHub.
If you find a bug or want to request a feature, please use the [Issue Tracker](https://github.com/funkygao/cp-ddd-framework/issues).
For any question, you can use [Gitter Chat](https://gitter.im/cp-ddd-framework/community) to ask.
## Licensing
DDDplus is licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).