{"id":22941918,"url":"https://github.com/dot123/gin-gorm-admin","last_synced_at":"2025-10-19T07:16:29.364Z","repository":{"id":144651678,"uuid":"537274650","full_name":"dot123/gin-gorm-admin","owner":"dot123","description":"基于GIN + GORM + WIRE实现的web脚手架，支持gorm数据库操作、cors 跨域、集成jwt鉴权、logrus日志收集、panic 异常捕获等开发必备功能。","archived":false,"fork":false,"pushed_at":"2024-12-05T08:49:10.000Z","size":116,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T11:26:43.648Z","etag":null,"topics":["gin","go","gorm","web"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dot123.png","metadata":{"files":{"readme":"README.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":"2022-09-16T02:16:10.000Z","updated_at":"2024-12-05T08:49:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1840f9a-8c83-4e62-bbfd-99494881e616","html_url":"https://github.com/dot123/gin-gorm-admin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dot123/gin-gorm-admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot123%2Fgin-gorm-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot123%2Fgin-gorm-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot123%2Fgin-gorm-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot123%2Fgin-gorm-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dot123","download_url":"https://codeload.github.com/dot123/gin-gorm-admin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot123%2Fgin-gorm-admin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264804048,"owners_count":23666514,"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":["gin","go","gorm","web"],"created_at":"2024-12-14T13:45:32.289Z","updated_at":"2025-10-19T07:16:24.331Z","avatar_url":"https://github.com/dot123.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gin-gorm-admin\n\n基于 GIN + GORM + WIRE 实现web脚手架，目标是提供一套轻量的中后台开发框架，方便、快速的完成业务需求的开发。\n\n\u003e 账号：admin 密码：123456\n\n\u003e 账号：test 密码：123456\n\n## 特性\n\n* 遵循 `RESTful API` 设计规范 \u0026 基于接口的编程规范\n* 基于 `GIN` 框架，提供了丰富的中间件支持（JWTAuth、CORS、RequestRateLimiter、Recover、GZIP）\n* 基于[jwt](https://github.com/appleboy/gin-jwt) 认证\n* 基于[go-playground/validator](https://github.com/go-playground/validator)开源库简化gin的请求校验\n* 用Docker上云\n* 在token过期后的一个小时内，用户再次操作会要求重新登陆\n* 基于[swaggo](https://github.com/swaggo)为Go工程生成自动化接口文档\n* 基于[wire](https://github.com/google/wire)依赖注入\n* 基于[gorm](https://gorm.io/zh_CN/)全功能ORM\n* 基于[air](https://github.com/cosmtrek/air)自动编译，重启程序\n* 基于redis限制请求频率\n\n### 项目结构\n\n\u003cpre\u003e\u003ccode\u003e\n├─api\n├─cmd\n├─configs\n├─docs\n├─internal\n│  ├─config\n│  ├─contextx\n│  ├─errors\n│  ├─ginx\n│  ├─middleware\n│  ├─models\n│  ├─schema\n│  ├─service\n│  └─validate\n└─pkg\n    ├─fileStore\n    ├─gormx\n    ├─hash\n    ├─logger\n    ├─monitor\n    ├─rabbitMQ\n    ├─redisHelper\n    ├─store\n    ├─timer\n    ├─types\n    ├─utils\n    └─validate\n\u003c/code\u003e\u003c/pre\u003e\n\n### 下载依赖\n\n\u003cpre\u003e\u003ccode\u003edepend.cmd\u003c/code\u003e\u003c/pre\u003e\n\n### 代码生成与运行\n\n##### 生成\n\n\u003cpre\u003e\u003ccode\u003egenerate.cmd\u003c/code\u003e\u003c/pre\u003e\n\n##### 数据库\n\n\u003cpre\u003e\u003ccode\u003egin-admin.sql\u003c/code\u003e\u003c/pre\u003e\n\n##### 运行\n\n\u003cpre\u003e\u003ccode\u003erun.cmd 或go run ./cmd/gin-gorm-admin/ web -c ./configs/config.toml\u003c/code\u003e\u003c/pre\u003e\n\n##### docker部署\n\n\u003cpre\u003e\u003ccode\u003edeploy.cmd\u003c/code\u003e\u003c/pre\u003e\n\n## 前端工程\n\n基于 [vue](https://github.com/vuejs/vue) 和 [element-ui](https://github.com/ElemeFE/element)实现：[gin-admin-vue](https://github.com/dot123/gin-admin-vue)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdot123%2Fgin-gorm-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdot123%2Fgin-gorm-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdot123%2Fgin-gorm-admin/lists"}