https://github.com/calloc134/golang-ddd-test
試験用です。参考にしないこと
https://github.com/calloc134/golang-ddd-test
Last synced: 3 months ago
JSON representation
試験用です。参考にしないこと
- Host: GitHub
- URL: https://github.com/calloc134/golang-ddd-test
- Owner: calloc134
- Created: 2024-04-17T09:16:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-12T22:57:13.000Z (12 months ago)
- Last Synced: 2025-02-28T02:48:46.698Z (3 months ago)
- Language: Go
- Size: 130 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golang-ddd-test
## 概要
DDD の勉強を元に、Go 言語でバックエンドの API を作成しています。
## ディレクトリ構成
```
.
├── cmd
│ ├── api: API サーバー
│ │ ├── graph: 具体的なgraphqlサーバ実装
│ │ │ ├── schema.graphqls: GraphQLのスキーマ
│ │ │ ├── resolver.go: リゾルバのDIなど
│ │ │ ├── schema.resolvers.go: スキーマに対応するリゾルバ
│ │ │ └── model: gqlgenにより生成されたモデル
│ │ └── main.go: APIのエントリーポイント
│ └── migrate: マイグレーションツール
│ ├── migrations: マイグレーションファイル
│ ├── schemas: DBスキーマ
│ └── main.go: マイグレーションツールのエントリーポイント
├── src
│ ├── mutation: ミューテーションで参照される実装
│ │ ├── domain: ドメインモデル
│ │ ├── application: ユースケース
│ │ └── repository: リポジトリ
│ └── query: クエリで参照される実装
│ ├── view: ビューモデル
│ └── gateway: ゲートウェイ(dataloaderなど)
├── gqlgen.yml: gqlgen の設定ファイル
└── test.s3db: 生成されるSQLite3のデータベース(当リポジトリには含まれない)```
## 採用技術
- Go
- gqlgen
- uptrace/bun## 改善点
issue 参照