{"id":18499186,"url":"https://github.com/linzhengen/ddd-gin-admin","last_synced_at":"2025-10-28T01:32:14.451Z","repository":{"id":45927954,"uuid":"250175512","full_name":"linzhengen/ddd-gin-admin","owner":"linzhengen","description":"This repository is a sample web application using DDD (Domain-Driven Design) architecture and Gin framework. ","archived":false,"fork":false,"pushed_at":"2025-02-04T20:40:46.000Z","size":4473,"stargazers_count":96,"open_issues_count":3,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-04T21:29:49.559Z","etag":null,"topics":["casbin","ddd","di","gin","golang","k8s","rbac","wire"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linzhengen.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-26T06:09:32.000Z","updated_at":"2025-02-04T20:40:49.000Z","dependencies_parsed_at":"2022-09-10T23:32:46.727Z","dependency_job_id":"2356eb0b-58d3-461b-9154-84024bc6f9ff","html_url":"https://github.com/linzhengen/ddd-gin-admin","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linzhengen%2Fddd-gin-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linzhengen%2Fddd-gin-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linzhengen%2Fddd-gin-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linzhengen%2Fddd-gin-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linzhengen","download_url":"https://codeload.github.com/linzhengen/ddd-gin-admin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238579790,"owners_count":19495552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["casbin","ddd","di","gin","golang","k8s","rbac","wire"],"created_at":"2024-11-06T13:44:56.408Z","updated_at":"2025-10-28T01:32:08.175Z","avatar_url":"https://github.com/linzhengen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ddd-gin-admin\n[English](./README.md) | [简体中文](./README.zh-CN.md) | 日本語\n\nこのリポジトリは、DDD（Domain-Driven Design）アーキテクチャとGinフレームワークを使用したWebアプリケーションのサンプルです。\n\n[![golangci-lint](https://github.com/linzhengen/ddd-gin-admin/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/linzhengen/ddd-gin-admin/actions/workflows/golangci-lint.yml)\n\n## 機能\n以下の機能を提供しています。\n\n- ユーザーの登録、ログイン、ログアウト\n- ユーザーの一覧表示、詳細表示、編集、削除\n- ロール（管理者、一般ユーザー）に基づくアクセス制御\n- Swaggerを使用したAPIドキュメント\n\n## 技術スタック\n以下の技術スタックを使用しています。\n\n- Golang\n- Gin - Webフレームワーク\n- GORM - ORMライブラリ\n- MySQL - データベース\n- Swagger - APIドキュメント生成ツール\n- K8s / Skaffold / Docker - コンテナ化\n\n## DDD Architecture\n+ Domain: Domain層は、アプリケーションのドメインとビジネスロジックが定義されます。\n+ Infrastructure: Infrastructure層は、DBアクセスなどの技術的関心を記述します。この層はDomain層に依存しています。 そのためInfrastructure層はDomain層のrepositoryで定義したインタフェースを実装します。\n+ Application: Application層は、ドメインとインターフェース層の間の通路として機能します。は、インターフェイス層からドメイン層に要求を送信し、ドメイン層はそれを処理して応答を返します。\n+ Interfaces: Interfaces層は、Webアプリケーションやバッチ処理など、他のシステムと対話するすべてのものを保持します。\n\u003cdiv\u003e\n    \u003cimg height=\"400\" src=\"docs/img/ddd_architecture.png\"\u003e\n\u003c/div\u003e\n\n## Swagger UI\n- GitHub Page: https://linzhengen.github.io/ddd-gin-admin/docs/swagger-ui/\n- Localhost: http://localhost:8080/swagger/index.html\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"docs/img/swagger.png\"\u003e\n\u003c/div\u003e\n\n## Compiles and hot-reloads for development\n```\nmake skaffold-dev\n```\n## Starting tunnel via minikube for service ddd-gin-admin-web\n```\nminikube service ddd-gin-admin-web --url -n ddd-gin-admin\n```\n## Lint\n```\nmake lint\n```\n## Build binary\n```\nmake build\n```\n\n## references\n+ https://dev.to/stevensunflash/using-domain-driven-design-ddd-in-golang-3ee5\n+ https://github.com/LyricTian/gin-admin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinzhengen%2Fddd-gin-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinzhengen%2Fddd-gin-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinzhengen%2Fddd-gin-admin/lists"}