/freedom

Freedom is a framework based on a hexagonal architecture that supports the congestion domain model paradigm.

Primary LanguageGoApache License 2.0Apache-2.0

freedom

License Go Report Card Build Status GoDoc

Freedom is a framework based on a hexagonal architecture that supports the congestion domain model paradigm.

Overview

  • Integrated Iris v12
  • Integrated Prometheus
  • Integrated Gorm
  • Link Tracing
  • Infra Container, Component-based Infrastructure
  • Http2 Server & client
  • Dependency Injection & Dependency Inversion
  • CRUD Automatic Code Generation
  • DDD & Hexagonal Architecture
  • Message Events & Event Retries & Domain Events
  • Primary Cache & Secondary Cache & Prevent Breakdown

Install

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

Create Project

$ freedom new-project [project-name]

Build Persistent Objects

# Vim [project-name]/cmd/conf/db.toml -- Fill in database address
# Configurable address and output directory, using 'freedom new-po -h' to see more
$ cd [project-name]
$ freedom new-po

Example