百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

ddd-gin-admin

> 云原生
开源

此仓库是一个使用 DDD(领域驱动设计)架构和 Gin 框架的示例 Web 应用程序。

99 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

此仓库是一个使用 DDD(领域驱动设计)架构和 Gin 框架的示例 Web 应用程序。

ddd-gin-admin

English | 简体中文 | 日本語

This repository is a sample web application using DDD (Domain-Driven Design) architecture and Gin framework. Here's an overview of the features and technology stack provided in this repository.

Features

This web application provides the following features:

  • User registration, login, and logout
  • User list display, detailed display, editing, and deletion
  • Access control based on roles (administrator, general user)
  • API documentation using Swagger

Technology Stack

This web application uses the following technology stack:

  • Golang
  • Gin - Web framework
  • GORM - ORM library
  • MySQL - Database
  • Swagger - API documentation generation tool
  • K8s / Skaffold / Docker - Containerization

DDD Architecture

  • Domain: This is where the domain and business logic of the application is defined.
  • Infrastructure: The infrastructure layer describes technical concerns such as DB access. This layer depends on the domain layer. Therefore, the infrastructure layer implements the interface defined in the repository of the domain layer.
  • Application: This layer serves as a passage between the domain and the interface layer. The sends the requests from the interface layer to the domain layer, which processes it and returns a response.
  • Interfaces: This layer holds everything that interacts with other systems, such as web services, RMI interfaces or web applications, and batch processing frontend.

Swagger UI

  • GitHub Page: https://linzhengen.github.io/ddd-gin-admin/docs/swagger-ui/
  • Localhost: http://localhost:8080/swagger/index.html

Compiles and hot-reloads for development

make skaffold-dev

Starting tunnel via minikube for service ddd-gin-admin-web

minikube service ddd-gin-admin-web --url -n ddd-gin-admin

Lint

make lint

Build binary

make build

references

  • https://dev.to/stevensunflash/using-domain-driven-design-ddd-in-golang-3ee5
  • https://github.com/LyricTian/gin-admin

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gocasbinddddigin

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类云原生
定价开源

> 相关工具

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,