|
@@ -1,2 +1,80 @@
|
1
|
|
-# CQRS
|
|
1
|
+# CQRS, .NET Core, MediatR, Clean Aechitecture.
|
|
2
|
+### *Sample .NET Core REST API CQRS implementation using Clean Architecture*
|
2
|
3
|
|
|
4
|
+## Découpage projet:
|
|
5
|
+
|
|
6
|
+### Backend.API :
|
|
7
|
+#### Dépendances:
|
|
8
|
+##### Packages:
|
|
9
|
+```
|
|
10
|
+<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.11.1" />
|
|
11
|
+<PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="6.2.3" />
|
|
12
|
+<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.2.3" />
|
|
13
|
+<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.2.3" />
|
|
14
|
+```
|
|
15
|
+##### Projets:
|
|
16
|
+```
|
|
17
|
+<ProjectReference Include="..\Backend.ApplicationCore\Backend.ApplicationCore.csproj" />
|
|
18
|
+<ProjectReference Include="..\Backend.Infrastructure\Backend.Infrastructure.csproj" />
|
|
19
|
+<ProjectReference Include="..\Backend.Persistence\Backend.Persistence.csproj" />
|
|
20
|
+```
|
|
21
|
+### Backend.ApplicationCore:
|
|
22
|
+#### Dépendences:
|
|
23
|
+##### Packages:
|
|
24
|
+```
|
|
25
|
+<PackageReference Include="AutoMapper" Version="10.1.1" />
|
|
26
|
+<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
|
|
27
|
+<PackageReference Include="MediatR" Version="7.0.0" />
|
|
28
|
+<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
|
|
29
|
+<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
|
|
30
|
+<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
|
|
31
|
+<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.13" />
|
|
32
|
+```
|
|
33
|
+##### Projets:
|
|
34
|
+`<ProjectReference Include="..\Backend.Domain\Backend.Domain.csproj" />`
|
|
35
|
+### Backend.Domain :
|
|
36
|
+#### Dépendences:
|
|
37
|
+##### Packages: Nothing
|
|
38
|
+##### Projets: Nothing
|
|
39
|
+### Backend.Infrastructure :
|
|
40
|
+#### Dépendences:
|
|
41
|
+##### Packages: Nothing
|
|
42
|
+##### Projets:
|
|
43
|
+```
|
|
44
|
+<ProjectReference Include="..\Backend.ApplicationCore\Backend.ApplicationCore.csproj" />
|
|
45
|
+<ProjectReference Include="..\Backend.Domain\Backend.Domain.csproj" />
|
|
46
|
+```
|
|
47
|
+### Backend.Persistence :
|
|
48
|
+#### Dépendences:
|
|
49
|
+##### Packages:
|
|
50
|
+```
|
|
51
|
+ <PackageReference Include="Microsoft.AspNet.Identity.EntityFramework" Version="2.2.3" />
|
|
52
|
+ <PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
|
|
53
|
+ <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.10" />
|
|
54
|
+ <PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.13" />
|
|
55
|
+ <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
|
|
56
|
+ <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
|
|
57
|
+ <PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.22" />
|
|
58
|
+ <PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="5.0.0-alpha.2" />
|
|
59
|
+ <PackageReference Include="System.Data.SqlClient" Version="4.8.3" />
|
|
60
|
+```
|
|
61
|
+##### Projets:
|
|
62
|
+` <ProjectReference Include="..\Backend.ApplicationCore\Backend.ApplicationCore.csproj" />`
|
|
63
|
+### Backend.MSTest :
|
|
64
|
+#### Dépendences:
|
|
65
|
+##### Packages:
|
|
66
|
+```
|
|
67
|
+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
|
|
68
|
+ <PackageReference Include="MSTest.TestAdapter" Version="2.2.3" />
|
|
69
|
+ <PackageReference Include="MSTest.TestFramework" Version="2.2.3" />
|
|
70
|
+ <PackageReference Include="coverlet.collector" Version="3.0.2" />
|
|
71
|
+ <PackageReference Include="NSubstitute" Version="4.2.2" />
|
|
72
|
+```
|
|
73
|
+##### Projets:
|
|
74
|
+```
|
|
75
|
+ <ProjectReference Include="..\Backend.ApplicationCore\Backend.ApplicationCore.csproj" />
|
|
76
|
+ <ProjectReference Include="..\Backend.Infrastructure\Backend.Infrastructure.csproj" />
|
|
77
|
+```
|
|
78
|
+
|
|
79
|
+### docs :
|
|
80
|
+#### Travail à faire
|