# dork_framework **Repository Path**: DarkHDS_admin/dork_framework ## Basic Information - **Project Name**: dork_framework - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-04 - **Last Updated**: 2024-09-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dork_framework ## 环境准备 ``` docker run --restart always --name mysql -v /mnt/d/docker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -d mysql:latest docker run --restart always -d --hostname node1 --name rabbitmq -p 15672:15672 -p 5672:5672 rabbitmq:3-management docker run --restart always --name redis -v /mnt/d/docker/redis:/data -p 6379:6379 -d redis:5.0.7 redis-server ``` ## 依赖对框架与组件 + [NetCorePal Cloud Framework](https://github.com/netcorepal/netcorepal-cloud-framework) + [ASP.NET Core](https://github.com/dotnet/aspnetcore) + [EFCore](https://github.com/dotnet/efcore) + [CAP](https://github.com/dotnetcore/CAP) + [MediatR](https://github.com/jbogard/MediatR) + [FluentValidation](https://docs.fluentvalidation.net/en/latest) + [Swashbuckle.AspNetCore.Swagger](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) ## 数据库迁移 ```shell # 安装工具 SEE: https://learn.microsoft.com/zh-cn/ef/core/cli/dotnet#installing-the-tools dotnet tool install --global dotnet-ef --version 8.0.0 # 强制更新数据库 dotnet ef database update -p src/dork_framework.Web # 创建迁移 SEE:https://learn.microsoft.com/zh-cn/ef/core/managing-schemas/migrations/?tabs=dotnet-core-cli dotnet ef migrations add InitialCreate -p src/dork_framework.Web ``` ## 关于监控 这里使用了`prometheus-net`作为与基础设施prometheus集成的监控方案,默认通过地址 `/metrics` 输出监控指标。 更多信息请参见:[https://github.com/prometheus-net/prometheus-net](https://github.com/prometheus-net/prometheus-net)