在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:marcusolsson/goddd开源软件地址:https://github.com/marcusolsson/goddd开源编程语言:Go 69.0%开源软件介绍:GoDDDThis is an attempt to port the DDD Sample App to idiomatic Go. This project aims to:
Important noteThis project is intended for inspirational purposes and should not be considered a tutorial, guide or best-practice neither how to implement Domain Driven Design nor enterprise applications in Go. Make sure you adapt the code and ideas to the requirements of your own application. Porting from JavaThe original application is written in Java and much thought has been given to the domain model, code organization and is intended to be an example of what you might find in an enterprise system. I started out by first rewriting the original application, as is, in Go. The result was hardly idiomatic Go and I have since tried to refactor towards something that is true to the Go way. This means that you will still find oddities due to the application's Java heritage. If you do, please let me know so that we can weed out the remaining Java. Running the applicationStart the application on port 8080 (or whatever the
If you only want to try it out, this is enough. If you are looking for full functionality, you will need to have a routing service running and start the application with DockerYou can also run the application using Docker.
... or if you're using Docker Compose:
Try it!
ContributingIf you want to fork the repository, follow these step to avoid having to rewrite the import paths. go get github.com/marcusolsson/goddd
cd $GOPATH/src/github.com/marcusolsson/goddd
git remote add fork git://github.com:<yourname>/goddd.git
# commit your changes
git push fork For more information, read this. Additional resourcesFor watching
For reading
Related projectsThe original application uses a external routing service to demonstrate the use of bounded contexts. For those who are interested, I have ported this service as well: To accompany this application, there is also an AngularJS-application to demonstrate the intended use-cases. Also, if you want to learn more about Domain Driven Design, I encourage you to take a look at the Domain Driven Design book by Eric Evans. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论