https://github.com/takashabe/go-ddd-sample
DDD like architecture sample application
https://github.com/takashabe/go-ddd-sample
clean-architecture ddd go layered-architecture
Last synced: 4 months ago
JSON representation
DDD like architecture sample application
- Host: GitHub
- URL: https://github.com/takashabe/go-ddd-sample
- Owner: takashabe
- License: mit
- Created: 2017-12-05T13:54:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-25T16:40:03.000Z (almost 7 years ago)
- Last Synced: 2025-11-19T23:03:33.185Z (7 months ago)
- Topics: clean-architecture, ddd, go, layered-architecture
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 290
- Watchers: 6
- Forks: 44
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ddd - DDD Sample in GO - Just another sample application implementing the four layers of DDD. (Sample Projects / GO)
README
# go-ddd-sample
This is sample application for like the DDD architecture.
## Design
* application
* Write business logic
* domain
* Define interface
* repository interface for infrastructure
* Define struct
* Entity struct that represent mapping to data model
* infrastructure
* Implements repository interface
* Solves backend technical topics
* e.x. message queue, persistence with RDB
* interfaces
* Write HTTP handler and middleware
#### References:
* https://speakerdeck.com/mercari/ja-golang-package-composition-for-web-application-the-case-of-mercari-kauru
* http://pospome.hatenablog.com/entry/2017/10/11/023848
* https://medium.com/@timakin/go%E3%81%AE%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E6%A7%8B%E6%88%90%E3%81%AE%E5%A4%B1%E6%95%97%E9%81%8D%E6%AD%B4%E3%81%A8%E7%8F%BE%E7%8A%B6%E7%A2%BA%E8%AA%8D-fc6a4369337