Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Freedom DDD Framework

License Go Report Card Build Status GoDoc GitHub release

Freedom是一个基于六边形架构的框架,可以支撑充血的领域模型范式。

Overview

  • 集成Iris v12
  • 集成普罗米修斯
  • 无侵入式Trace
  • 基于组件式的基础设施扩展
  • HTTP/H2C Server & Client
  • 依赖注入 & 依赖倒置
  • CRUD & PO 代码生成
  • DDD & 六边形架构
  • 消息事件 & 领域事件
  • 一级缓存 & 二级缓存 & 防击穿

安装

$ go get github.com/8treenet/freedom/freedom

脚手架创建项目

$ freedom new-project [project-name]

脚手架生成增删查改和持久化对象

# freedom new-po -h 查看更多
$ cd [project-name]

# 数据库数据源方式
$ freedom new-po --dsn "root:123123@tcp(127.0.0.1:3306)/freedom?charset=utf8"

# JSON 数据源方式
$ freedom new-po --json ./domain/po/shcema.json

Example

基础教程

http2监听和依赖倒置

事务组件和自定义组件

消息事件和领域事件

一个完整的电商demo,包含CQS、聚合、实体、领域事件、资源库、基础设施

About

Freedom是一个基于六边形架构的框架,可以支撑充血的领域模型范式。

Topics

Resources

License

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

You can’t perform that action at this time.