{"id":19036146,"url":"https://github.com/tx7do/kratos-ent-example","last_synced_at":"2026-06-19T08:01:58.386Z","repository":{"id":183633886,"uuid":"670467723","full_name":"tx7do/kratos-ent-example","owner":"tx7do","description":"# Kratos Ent ORM实例  本项目是一个基于 Go 语言的微服务实践示例项目，核心定位为 Kratos 微服务框架与 Ent ORM 工具的整合示范。项目旨在降低开发者的学习与实践成本，通过完整的目录结构、配置示例和核心功能模块，展示如何在 Kratos 生态下高效集成 Ent 进行数据库操作，同时配套 Redis 缓存、标准化 API 定义、多服务注册中心等基础设施，为微服务项目的初始化提供可参考的实践模板。","archived":false,"fork":false,"pushed_at":"2025-12-05T07:58:34.000Z","size":510,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-08T15:51:58.199Z","etag":null,"topics":["entgo","go-kratos","golang","kratos","orm"],"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/tx7do.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}},"created_at":"2023-07-25T05:59:01.000Z","updated_at":"2025-12-05T07:58:38.000Z","dependencies_parsed_at":"2023-07-25T08:25:32.488Z","dependency_job_id":"bc4320b0-ebf8-4d34-9cc7-ee0be517ec5a","html_url":"https://github.com/tx7do/kratos-ent-example","commit_stats":null,"previous_names":["tx7do/kratos-ent-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tx7do/kratos-ent-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-ent-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-ent-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-ent-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-ent-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tx7do","download_url":"https://codeload.github.com/tx7do/kratos-ent-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-ent-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34522042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["entgo","go-kratos","golang","kratos","orm"],"created_at":"2024-11-08T21:53:34.721Z","updated_at":"2026-06-19T08:01:58.381Z","avatar_url":"https://github.com/tx7do.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kratos Ent ORM实例\r\n\r\n本项目是一个基于 Go 语言的微服务实践示例项目，核心定位为 Kratos 微服务框架与 Ent ORM 工具的整合示范。项目旨在降低开发者的学习与实践成本，通过完整的目录结构、配置示例和核心功能模块，展示如何在 Kratos 生态下高效集成 Ent 进行数据库操作，同时配套 Redis 缓存、标准化 API 定义、多服务注册中心等基础设施，为微服务项目的初始化提供可参考的实践模板。\r\n\r\n## API文档\r\n\r\n### Swagger UI\r\n\r\n- [Swagger UI](http://localhost:7788/docs/)\r\n\r\n### openapi.yaml\r\n\r\n- [openapi.yaml](http://localhost:7788/docs/openapi.yaml)\r\n\r\n## Make构建\r\n\r\n### 在后端项目根目录下执行：\r\n\r\n### 在`app/{服务名}/service`下执行：\r\n\r\n#### 生成API的go代码\r\n\r\n```bash\r\nmake api\r\n```\r\n\r\n#### 生成API的OpenAPI v3 文档\r\n\r\n```bash\r\nmake openapi\r\n```\r\n\r\n#### 生成ent代码\r\n\r\n```bash\r\nmake ent\r\n```\r\n\r\n#### 生成wire代码\r\n\r\n```bash\r\nmake wire\r\n```\r\n\r\n#### 构建二进制文件\r\n\r\n```bash\r\nmake build\r\n```\r\n\r\n#### 调试运行\r\n\r\n```bash\r\nmake run\r\n```\r\n\r\n#### 构建Docker镜像\r\n\r\n```bash\r\nmake docker\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftx7do%2Fkratos-ent-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftx7do%2Fkratos-ent-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftx7do%2Fkratos-ent-example/lists"}