https://github.com/tty47/ddd-api-go
https://github.com/tty47/ddd-api-go
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tty47/ddd-api-go
- Owner: tty47
- Created: 2021-02-27T11:01:54.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-01T19:11:05.000Z (about 4 years ago)
- Last Synced: 2025-02-14T10:43:44.705Z (3 months ago)
- Language: Go
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DDD-API-Go
This repository content an API based in Hexagonal Architecture.
We use the framework Gin in order to move it forward faster.
## Set new entrypoint/controller
- Create a new handler and defined in the handler folder
## Project structure
- cmd/api: Entrypoints for our service
- internal/platform: Infrastructure references
- internal/platform/server: References to our server (gin in this case)
- internal/platform/storage:
- internal/platform/storage/mysql/: Mysql implementation
- internal/platform/storage/storagemocks:## Mocks
We use the libray: [mockery](http://github.com/vektra/mockery/v2/)
You can import it using:
```go
go get github.com/vektra/mockery/v2/.../
```