{"id":20880396,"url":"https://github.com/memoyu/coreme","last_synced_at":"2025-05-12T16:32:16.909Z","repository":{"id":109212431,"uuid":"324801196","full_name":"Memoyu/CoreMe","owner":"Memoyu","description":"作为个人.NET 开发技术的积累、实践合集，基于.NET 8实现基础的项目架构，为后期个人项目快速开发提供基座，开箱即用","archived":false,"fork":false,"pushed_at":"2024-07-11T03:24:01.000Z","size":7888,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T08:25:50.834Z","etag":null,"topics":["csharp","dotnet8","dotnetcore","memoyu","signalr"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Memoyu.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":"2020-12-27T16:23:08.000Z","updated_at":"2024-07-17T06:46:35.000Z","dependencies_parsed_at":"2023-11-17T18:49:30.602Z","dependency_job_id":null,"html_url":"https://github.com/Memoyu/CoreMe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Memoyu%2FCoreMe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Memoyu%2FCoreMe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Memoyu%2FCoreMe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Memoyu%2FCoreMe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Memoyu","download_url":"https://codeload.github.com/Memoyu/CoreMe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253776973,"owners_count":21962605,"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":["csharp","dotnet8","dotnetcore","memoyu","signalr"],"created_at":"2024-11-18T07:20:10.439Z","updated_at":"2025-05-12T16:32:15.620Z","avatar_url":"https://github.com/Memoyu.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"  style=\"margin-bottom: 40px\"\u003e\n \u003cimg src=\"https://raw.githubusercontent.com/Memoyu/Memoyu/main/logo.png\" alt=\"memoyu\" width=\"128\" /\u003e\n\u003c/div\u003e\n\u003ch1 align=\"center\"\u003eCoreMe\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n \u003ch3\u003e基于.NET8开箱即用项目模板\u003c/h3\u003e\n \u003ca href=\"https://dotnet.microsoft.com/zh-cn/download\"\u003e\u003cimg src=\"https://img.shields.io/badge/.net8.0.0-3963bc.svg\"/\u003e\u003c/a\u003e\n \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-3963bc.svg\"/\u003e\u003c/a\u003e\n \u003ca href=\"https://github.com/Memoyu\"\u003e\u003cimg src=\"https://img.shields.io/badge/developer-memoyu-blue\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\n## 简介\n\n作为个人.NET 开发技术的积累、实践合集，基于.NET 8实现基础的项目架构，为后期个人项目快速开发提供基座，开箱即用；\n遵循[CleanArchitecture](https://github.com/amantinband/clean-architecture)设计理念(Ctrl C + V)\n\n\n## 衍生项目\n\n- 个人博客系统 [Memo.Blog ](https://github.com/Memoyu/Memo.Blog)\n\n\n## 功能实现\n\n- 系统日志写入/查询；\n- 用户、访客管理；\n- 角色、权限管理；\n\n\n## 分层结构\n```powershell\nsrc\n├─CoreMe.Application -- 应用服务模块\n│  ├─Users -- 服务名称（具体服务实现，例如：文章管理、权限管理等）\n│  │  ├─Commands -- 增删改命令操作（对数据造成变更的处理）\n│  │  ├─Common -- 当前服务公有实体，例如：响应、请求\n│  │  ├─Events -- 事件触发EventHandler\n│  │  └─Queries -- 查询操作（对数据进行读取）\n│  │      ├─Anlyanis -- 统计分析数据\n│  │      ├─Get -- 获取详情\n│  │      ├─List -- 获取列表\n│  │      └─Page -- 获取分页\n│  └─Common -- 服务公有模块\n│     ├─Behaviours -- MediatR管道切面行为（AOP）\n│     ├─Exceptions -- 自定义异常\n│     ├─Extensions -- 扩展方法\n│     ├─Interfaces -- 接口定义\n│     │  ├─Persistence -- 数据相关定义\n│     │  │  └─Repositories -- 仓储定义（基础仓储定义）等\n│     │  ├─Security -- 安全相关接口定义\n│     │  └─Services -- 服务接口定义\n│     ├─Mappings -- Mapster实体映射IRegister\n│     ├─Models -- 公共模型定义，例如：配置、响应、请求等基础实体\n│     ├─Request -- 进程内通信基础定义\n│     ├─Security -- 安全相关的实体定义\n│     ├─Services -- 服务实现，例如后台任务服务\n│     └─Utils -- 工具类\n├─CoreMe.Domain -- 服务领域模块\n│  ├─Common -- 公共实体定义\n│  ├─Constants -- 常量定义\n│  ├─Entities -- 数据库实体定义\n│  │  └─Mongo -- MongoDB实体定义\n│  ├─Enums -- 枚举定义\n│  ├─Events -- 事件定义\n│  └─ValueObjects -- 值对象定义\n├─CoreMe.Infrastructure -- 基础设施模块\n│  ├─Persistence -- 数据持久化实现\n│  │  └─Repositories -- 数据库仓储实现\n│  ├─Region -- ip2region进一步封装实现\n│  └─Security -- 安全相关实现，例如JWT、当前用户、权限验证\n└─CoreMe.Api -- 外放接口模块\n    ├─Controllers -- 客户端接口定义\n    │  └─Admin -- 管理端接口定于\n    └─wwwroot -- 静态文件\n        └─Assets -- 资源文件\n```\n\n## 相关技术\n|                模块                 |                           开源地址                           |\n| :---------------------------------: | :----------------------------------------------------------: |\n|API文档|    [RicoSuter/NSwag](https://github.com/RicoSuter/NSwag)     |\n|数据库| [dotnetcore/FreeSql](https://github.com/dotnetcore/FreeSql) + [MySQL](https://www.mysql.com/cn/) + [MongoDB](https://www.mongodb.com/) + [MongoDB C# Driver](https://www.mongodb.com/docs/drivers/csharp/current/) |\n|对象存储|[七牛云](https://www.qiniu.com/) + [qiniu/csharp-sdk](https://github.com/qiniu/csharp-sdk)|\n|缓存| [Redis](https://redis.io/) + [dotnetcore/EasyCaching](https://github.com/dotnetcore/EasyCaching) |\n| 进程内通信 |[jbogard/MediatR](https://github.com/jbogard/MediatR)|\n| 身份认证 |[Authentication(内置)](https://learn.microsoft.com/zh-cn/aspnet/core/security/authentication/?view=aspnetcore-8.0) + [jwt](https://jwt.io/)|\n|参数验证|[FluentValidation/FluentValidation](https://github.com/FluentValidation/FluentValidation)     |\n|日志|[serilog/serilog](https://github.com/serilog/serilog)     |\n|限流| [stefanprodan/AspNetCoreRateLimit](https://github.com/stefanprodan/AspNetCoreRateLimit) |\n|IP解析|[lionsoul2014/ip2region](https://github.com/lionsoul2014/ip2region/)|\n|雪花ID|[yitter/idgenerator](https://github.com/yitter/idgenerator)|\n|对象映射| [MapsterMapper/Mapster](https://github.com/MapsterMapper/Mapster) |\n| Json序列化/反序列化 | [System.Text.Json(内置)](https://learn.microsoft.com/zh-cn/dotnet/api/system.text.json) |\n|后台任务调度| [BackgroundService(内置)](https://learn.microsoft.com/zh-cn/dotnet/architecture/microservices/multi-container-microservice-net-applications/background-tasks-with-ihostedservice) |\n|实时通信|[SignalR/SignalR](https://github.com/SignalR/SignalR)|\n|整体设计参考| [CleanArchitecture](https://github.com/amantinband/clean-architecture) |\n|容器| [Docker](https://www.docker.com/) |\n|DevOps|[Azure](https://dev.azure.com/)|\n\n\n## 参考项目\n\n- [amantinband/clean-architecture](https://github.com/amantinband/clean-architecture)\n- [luoyunchong/lin-cms-dotnetcore](https://github.com/luoyunchong/lin-cms-dotnetcore)\n\n**在此，感谢各位大佬的开源**\n\n\n## 开源协议\n\nMIT License. See [License here](./LICENSE) for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemoyu%2Fcoreme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemoyu%2Fcoreme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemoyu%2Fcoreme/lists"}