Freedom is a framework based on a hexagonal architecture that supports the congestion domain model paradigm.
- Integrated Iris v12
- Integrated Prometheus
- Link Tracing
- Infra Container, Component-based Infrastructure
- Http2 Server & Client
- Dependency Injection & Dependency Inversion
- CRUD Automatic Code Generation
- DDD & Hexagonal Architecture
- Domain Events & MQ Infrastructure
- CQS & Aggregation
- Message Events & Event Retries & Domain Events
- Primary Cache & Secondary Cache & Prevent Breakdown
$ go install github.com/8treenet/freedom/freedom@latest
$ freedom version
$ freedom new-project [project-name]
$ cd [project-name]
$ go mod tidy
$ go run server/main.go
# Configurable address and output directory, using 'freedom new-po -h' to see more
$ cd [project-name]
# DB schema
$ freedom new-po --dsn "root:123123@tcp(127.0.0.1:3306)/freedom?charset=utf8"
# JSON schema
$ freedom new-po --json ./domain/po/schema.json