# freedom **Repository Path**: jazzme/freedom ## Basic Information - **Project Name**: freedom - **Description**: Freedom is a framework based on a hexagonal architecture that supports the congestion domain model paradigm. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-28 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # freedom [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/8treenet/gotree/blob/master/LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/8treenet/tcp)](https://goreportcard.com/report/github.com/8treenet/tcp) [![Build Status](https://travis-ci.org/8treenet/gotree.svg?branch=master)](https://travis-ci.org/8treenet/gotree) [![GoDoc](https://godoc.org/github.com/8treenet/gotree?status.svg)](https://godoc.org/github.com/8treenet/gotree) ###### freedom是一个基于六边形架构的框架,可以支撑充血的领域模型范式。 ## Overview - 集成iris v12 - 集成普罗米修斯 - 无侵入式Trace - infra容器 基于组件的基础设施 - http2 server & client - 依赖注入&依赖倒置 - CRUD 代码生成 - DDD&六边形架构 - 消息事件&事件重试&领域事件 - 一级缓存&二级缓存&防击穿 ## 安装 ```sh $ go get github.com/8treenet/freedom/freedom ``` ## 创建项目 ```sh $ freedom new-project [project-name] ``` ## 生成po 持久化对象 #### ```sh # 编辑 [project-name]/cmd/conf/db.toml 填入数据库地址 # 可指定配置地址和输出目录 freedom new-po -h 查看更多 $ cd [project-name] $ freedom new-po ``` ## Example #### [基础教程](https://github.com/8treenet/freedom/blob/master/example/base) #### [http2监听和依赖倒置](https://github.com/8treenet/freedom/blob/master/example/http2) #### [事务组件和自定义组件](https://github.com/8treenet/freedom/blob/master/example/infra-example) #### [消息事件和领域事件](https://github.com/8treenet/freedom/blob/master/example/event-example) #### [一个完整的电商demo,包含CQRS、聚合、实体、领域事件、资源库、基础设施](https://github.com/8treenet/freedom/blob/master/example/fshop)