server cleanup

This commit is contained in:
hamid
2026-06-16 01:46:53 +03:30
parent 69bbd28bb0
commit 5b4c0d183f
205 changed files with 641 additions and 628 deletions
+18 -18
View File
@@ -21,9 +21,9 @@ Backend API for the Balinyaar application. It is an **ASP.NET Core (.NET 10)** s
From the `server/` folder:
```bash
dotnet restore CleanArcTemplate.sln
dotnet build CleanArcTemplate.sln
dotnet run --project src/API/CleanArc.Web.Api/CleanArc.Web.Api.csproj
dotnet restore Baya.sln
dotnet build Baya.sln
dotnet run --project src/API/Baya.Web.Api/Baya.Web.Api.csproj
```
By default the API listens on **https://localhost:5002** and serves Swagger UI at **/swagger**.
@@ -32,7 +32,7 @@ On startup the app **applies EF Core migrations** and **seeds default users** au
### Configuration
Settings live in `src/API/CleanArc.Web.Api/appsettings.json` (+ `appsettings.Development.json`):
Settings live in `src/API/Baya.Web.Api/appsettings.json` (+ `appsettings.Development.json`):
- `ConnectionStrings:SqlServer` — main application database
- `ConnectionStrings:logDb` — Serilog SQL sink database
@@ -43,14 +43,14 @@ Settings live in `src/API/CleanArc.Web.Api/appsettings.json` (+ `appsettings.Dev
Generate a development HTTPS certificate (used by the container):
```bash
dotnet dev-certs https -ep $env:USERPROFILE/.aspnet/https/cleanarc.pfx -p Strong@Password
dotnet dev-certs https -ep $env:USERPROFILE/.aspnet/https/baya.pfx -p Strong@Password
dotnet dev-certs https --trust
```
Build and start the API together with SQL Server 2022:
```bash
docker build -t balinyaar-server -f Dockerfile .
docker build -t bobby-baya -f Dockerfile .
docker-compose up -d
```
@@ -61,19 +61,19 @@ The compose stack exposes the API on `http://localhost:5000` / `https://localhos
```
src/
├── Core/
│ ├── CleanArc.Domain Entities + domain primitives (the core / "brain")
│ └── CleanArc.Application CQRS features, contracts (interfaces), MediatR pipeline
│ ├── Baya.Domain Entities + domain primitives (the core / "brain")
│ └── Baya.Application CQRS features, contracts (interfaces), MediatR pipeline
├── Infrastructure/
│ ├── CleanArc.Infrastructure.Persistence EF Core DbContext, configs, repositories, UoW, migrations
│ ├── CleanArc.Infrastructure.Identity Identity, JWE/JWT, OTP, dynamic permissions
│ ├── CleanArc.Infrastructure.CrossCutting Cross-cutting concerns (logging)
│ └── CleanArc.Infrastructure.Monitoring Health checks, OpenTelemetry, Prometheus
│ ├── Baya.Infrastructure.Persistence EF Core DbContext, configs, repositories, UoW, migrations
│ ├── Baya.Infrastructure.Identity Identity, JWE/JWT, OTP, dynamic permissions
│ ├── Baya.Infrastructure.CrossCutting Cross-cutting concerns (logging)
│ └── Baya.Infrastructure.Monitoring Health checks, OpenTelemetry, Prometheus
├── API/
│ ├── CleanArc.Web.Api Presentation: REST controllers, Program.cs (startup)
│ ├── CleanArc.WebFramework Reusable web config: base controller, filters, middleware, Swagger
│ └── Plugins/CleanArc.Web.Plugins.Grpc Self-contained gRPC plugin
│ ├── Baya.Web.Api Presentation: REST controllers, Program.cs (startup)
│ ├── Baya.WebFramework Reusable web config: base controller, filters, middleware, Swagger
│ └── Plugins/Baya.Web.Plugins.Grpc Self-contained gRPC plugin
├── Shared/
│ └── CleanArc.SharedKernel Shared extensions/helpers referenced by every layer
│ └── Baya.SharedKernel Shared extensions/helpers referenced by every layer
└── Tests/ xUnit test setup + Identity tests
```
@@ -111,10 +111,10 @@ A standalone module that adds gRPC endpoints to the same host via **Application
## Tests
```bash
dotnet test CleanArcTemplate.sln
dotnet test Baya.sln
```
Each layer is designed to be testable in isolation; `CleanArc.Tests.Setup` provides the shared test scaffolding.
Each layer is designed to be testable in isolation; `Baya.Tests.Setup` provides the shared test scaffolding.
## License