Skip to content

Commit 9a639c3

Browse files
committed
refactor project structure
1 parent e95b383 commit 9a639c3

File tree

22 files changed

+71
-144
lines changed

22 files changed

+71
-144
lines changed

.gitattributes

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# Set default behavior to automatically normalize line endings.
33
###############################################################################
44
* text=auto
5-
*.cs linguist-language=rust
6-
*.rs linguist-language=C#
5+
# *.cs linguist-language=rust
6+
# *.rs linguist-language=C#
77
# *.razor linguist-language=rust
8-
# *.html linguist-language=rust
9-
# *.css linguist-language=rust
8+
*.html linguist-language=rust
9+
*.css linguist-language=rust
10+
*.scss linguist-language=rust
1011
###############################################################################
1112
# Set default behavior for command prompt diff.
1213
#

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
The practical repository uses coolstore domain which is mainly borrowed from `https://github.com/zkavtaskin/Domain-Driven-Design-Example` to demonstrate how to apply Domain Driven Design seamlessly with Clean Architecture.
44

55

6-
76
# Business Usecases
87

98
![](assets/usecase_diagram.png)
@@ -18,6 +17,13 @@ The practical repository uses coolstore domain which is mainly borrowed from `ht
1817

1918
# Testing Application
2019

20+
- Prerequisite
21+
- .NET SDK: 5.0.200-preview.21079.7
22+
- Rust: v1.50.0
23+
- nodejs: v15.5.1
24+
- tye: 0.7.0-alpha.21070.7+eb3b50699b7a5f2d0997a5cc8c5185d056dde8ec
25+
- dapr: 1.0.0
26+
2127
- Starting the Api
2228

2329
```

coolstore.sln

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BuildingBlocks", "BuildingB
2222
EndProject
2323
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductService.Core", "src\Product\ProductService.Core\ProductService.Core.csproj", "{5D51CCDB-A06D-4201-AC53-D2279CDF2DCA}"
2424
EndProject
25-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductService.Api", "src\Product\ProductService.Api\ProductService.Api.csproj", "{DD53DA16-07B0-43FE-AB75-151691E46723}"
26-
EndProject
2725
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductService.Infrastructure", "src\Product\ProductService.Infrastructure\ProductService.Infrastructure.csproj", "{73BD59B3-DB37-4501-A742-8F4D286DF795}"
2826
EndProject
2927
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "N8T.Infrastructure", "src\BuildingBlocks\N8T.Infrastructure\N8T.Infrastructure.csproj", "{FEE450A9-7F98-4869-82C8-9A9F2D862B79}"
@@ -48,10 +46,6 @@ Global
4846
{5D51CCDB-A06D-4201-AC53-D2279CDF2DCA}.Debug|Any CPU.Build.0 = Debug|Any CPU
4947
{5D51CCDB-A06D-4201-AC53-D2279CDF2DCA}.Release|Any CPU.ActiveCfg = Release|Any CPU
5048
{5D51CCDB-A06D-4201-AC53-D2279CDF2DCA}.Release|Any CPU.Build.0 = Release|Any CPU
51-
{DD53DA16-07B0-43FE-AB75-151691E46723}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
52-
{DD53DA16-07B0-43FE-AB75-151691E46723}.Debug|Any CPU.Build.0 = Debug|Any CPU
53-
{DD53DA16-07B0-43FE-AB75-151691E46723}.Release|Any CPU.ActiveCfg = Release|Any CPU
54-
{DD53DA16-07B0-43FE-AB75-151691E46723}.Release|Any CPU.Build.0 = Release|Any CPU
5549
{73BD59B3-DB37-4501-A742-8F4D286DF795}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5650
{73BD59B3-DB37-4501-A742-8F4D286DF795}.Debug|Any CPU.Build.0 = Debug|Any CPU
5751
{73BD59B3-DB37-4501-A742-8F4D286DF795}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -86,7 +80,6 @@ Global
8680
EndGlobalSection
8781
GlobalSection(NestedProjects) = preSolution
8882
{5D51CCDB-A06D-4201-AC53-D2279CDF2DCA} = {26B30655-87DA-471F-8CE5-132B4281791F}
89-
{DD53DA16-07B0-43FE-AB75-151691E46723} = {26B30655-87DA-471F-8CE5-132B4281791F}
9083
{73BD59B3-DB37-4501-A742-8F4D286DF795} = {26B30655-87DA-471F-8CE5-132B4281791F}
9184
{FEE450A9-7F98-4869-82C8-9A9F2D862B79} = {B17CF9E5-E4A8-42B4-A669-7BC41D314D5F}
9285
{CF46C96E-0AF2-4613-9587-6EAB6657B755} = {B17CF9E5-E4A8-42B4-A669-7BC41D314D5F}

rs/Cargo.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rs/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[workspace]
22
members = [
33
"audit_service",
4-
"audit_subscriber",
5-
"rs"
4+
"audit_subscriber"
65
]

rs/audit_service/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ async fn main() -> std::io::Result<()> {
4242

4343
println!("Running migration...");
4444
let migration_pool_conn = pool.clone().get().expect("Cannot get db connection");
45-
embedded_migrations::run(&migration_pool_conn);
45+
match embedded_migrations::run(&migration_pool_conn) {
46+
Ok(_) => println!("Done migration"),
47+
Err(error) => println!("Failed: migration with error={}", error)
48+
};
4649

4750
let mut server = HttpServer::new(move || {
4851
App::new()

rs/rs/Cargo.toml

Lines changed: 0 additions & 9 deletions
This file was deleted.

rs/rs/src/main.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Product/ProductService.Api/Endpoints/CreateProduct.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Product/ProductService.Api/Endpoints/GetProductById.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)