pengwei52 / dddplus

🔥 A lightweight flexible development framework for complex business architecture with full ecosystem!轻量级业务中台开发框架,中台架构的顶层设计和完整解决方案!

Home Page:https://github.com/funkygao/cp-ddd-framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DDDplus

A lightweight DDD(Domain Driven Design) Enhancement Framework for complex business architecture.

CI Javadoc Mavenn Central Requirement Coverage Status Mentioned in Awesome DDD Gitter chat

Languages: English | 中文


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 enpowers building domain model with forward and reverse modeling. It visualizes the complete domain knowledge. 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.

In short, the 3 most essential plus are:

  1. provide extension point with multiple routing mechanism, suited for complex business scenarios
  2. patch DDD building blocks for pragmatic forward modeling, clearing obstacles of DDD implementation
  3. offer a reverse modeling DSL, visualizing complete domain knowledge from code

Current status

Used for several complex critical central platform projects in production environment.

Latest Maven Central version: 1.1.2, under active development version: 2.0.0-SNAPSHOT.

Quickstart

Dependencies

<dependency>
    <groupId>io.github.dddplus</groupId>
    <artifactId>dddplus-runtime</artifactId>
</dependency>

Integration with SpringBoot

@SpringBootApplication(scanBasePackages = {"${your base packages}", "io.github.dddplus"})
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }
}

Reverse Modeling

<dependency>
    <groupId>io.github.dddplus</groupId>
    <artifactId>dddplus-visualization</artifactId>
</dependency>

Annotate your code With DSL, DDDplus can render domain model in PlantUML.

class ReverseModelingTest {
    ReverseEngineeringModel model;
    @Test
    void visualizeDomainModel() {
        model = new DomainModelAnalyzer()
                        .scan("{your module root}")
                        .analyze();
        new PlantUmlBuilder()
            .build(model)
            .renderSvg("model.svg");
    }
}

Architecture Guard

<dependency>
    <groupId>io.github.dddplus</groupId>
    <artifactId>dddplus-enforce</artifactId>
    <scope>test</scope>
</dependency>

Enable it by writing unit test and integrate it with CI flow.

class ArchitectureGuardTest {
    @Test
    void enforcement() {
        new DDDPlusEnforcer()
                .scanPackages("${your base package}")
                .enforce();
    }
}

Modules Dependencies

Extension Framework Abstractions

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.

For any question, you can use Gitter Chat 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.

About

🔥 A lightweight flexible development framework for complex business architecture with full ecosystem!轻量级业务中台开发框架,中台架构的顶层设计和完整解决方案!

https://github.com/funkygao/cp-ddd-framework

License:Apache License 2.0


Languages

Language:Java 99.8%Language:Makefile 0.2%