You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.8 KiB

# CoreAgent
## 项目简介
CoreAgent 是一个基于 .NET 8.0 的现代化应用程序,采用微服务架构设计。
## 技术栈
- .NET 8.0
- ASP.NET Core
- Entity Framework Core
- SQL Server
- Docker
## 项目结构
```
CoreAgent/
├── CoreAgent.API/ # Web API 项目
│ ├── Configurations/ # 配置文件
│ └── Controllers/ # API 控制器
├── CoreAgent.Application/ # 应用层
│ ├── Commands/ # 命令处理
│ └── Handlers/ # 命令处理器
├── CoreAgent.Domain/ # 领域层
│ ├── Contexts/ # 领域上下文
│ ├── Entities/ # 领域实体
│ ├── Interfaces/ # 接口定义
│ └── Models/ # 领域模型
└── CoreAgent.Infrastructure/# 基础设施层
├── Extensions/ # 扩展方法
└── Services/ # 服务实现
```
## 最新更新
- 重构网络服务架构,优化网络配置管理
- 移除冗余的网络状态提供者和配置器接口
- 更新网络命令处理逻辑
- 优化网络服务实现
## 开发环境要求
- Visual Studio 2022 或更高版本
- .NET 8.0 SDK
- SQL Server 2019 或更高版本
- Docker Desktop (可选)
## 快速开始
### 1. 克隆项目
```bash
git clone http://47.120.42.247:13001/root/CoreAgent.git
```
### 2. 还原依赖
```bash
dotnet restore
```
### 3. 运行项目
```bash
dotnet run --project CoreAgent.API
```
## 项目配置
1.`appsettings.json` 中配置数据库连接字符串
2. 确保已安装所需的 NuGet 包
3. 运行数据库迁移(如果适用)
## 贡献指南
1. Fork 项目
2. 创建特性分支
3. 提交更改
4. 推送到分支
5. 创建 Pull Request
## 许可证
[待定]
## 联系方式
[待定]