Skip to content
forked from 8treenet/freedom

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

License

Notifications You must be signed in to change notification settings

hyue418/freedom

This branch is 44 commits behind 8treenet/freedom:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c8a2509 · Dec 16, 2021
Nov 29, 2021
Dec 16, 2021
Nov 29, 2021
Oct 10, 2021
Nov 6, 2021
Dec 19, 2020
Nov 9, 2019
Nov 6, 2021
Nov 6, 2021
Jul 28, 2021
Jul 28, 2021
Nov 5, 2021
Jul 28, 2021

Repository files navigation

Freedom DDD Framework

License Go Report Card Build Status GoDoc GitHub release

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

Overview

  • 集成 Iris
  • HTTP/H2C Server & Client
  • 集成普罗米修斯
  • AOP Worker & 无侵入 Context
  • 可扩展组件 Infrastructure
  • 依赖注入 & 依赖倒置 & 开闭原则
  • DDD & 六边形架构
  • 领域事件 & 消息队列组件
  • CQS & 聚合根
  • CRUD & PO Generate
  • 一级缓存 & 二级缓存 & 防击穿

安装

go.1.16+
$ go install github.com/8treenet/freedom/freedom@latest
$ freedom version
go.1.13+
$ git clone https://github.com/8treenet/freedom.git $GOPATH/src/github.com/8treenet/freedom
$ cd $GOPATH/src/github.com/8treenet/freedom/freedom
$ go install
$ freedom version

脚手架创建项目

$ freedom new-project [project-name]
$ cd [project-name]
$ go run server/main.go

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

# 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/schema.json

Example

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.9%
  • Dockerfile 0.1%