在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:bxcodec/go-clean-arch开源软件地址:https://github.com/bxcodec/go-clean-arch开源编程语言:Go 68.3%开源软件介绍:go-clean-archChangelog
DescriptionThis is an example of implementation of Clean Architecture in Go (Golang) projects. Rule of Clean Architecture by Uncle Bob
More at https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html This project has 4 Domain layer :
The diagram:The original explanation about this project's structure can read from this medium's post : https://medium.com/@imantumorang/golang-clean-archithecture-efd6d7c43047. It may different already, but the concept still the same in application level, also you can see the change log from v1 to current version in Master. How To Run This Project
Since the project already use Go Module, I recommend to put the source code in any folder but GOPATH. Run the Testing$ make test Run the ApplicationsHere is the steps to run it with #move to directory
$ cd workspace
# Clone into YOUR $GOPATH/src
$ git clone https://github.com/bxcodec/go-clean-arch.git
#move to project
$ cd go-clean-arch
# Build the docker image first
$ make docker
# Run the application
$ make run
# check if the containers are running
$ docker ps
# Execute the call
$ curl localhost:9090/articles
# Stop
$ make stop Tools Used:In this project, I use some tools listed below. But you can use any simmilar library that have the same purposes. But, well, different library will have different implementation type. Just be creative and use anything that you really need.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论