Skip to content

Commit ed044ca

Browse files
RodrigoDevRodrigoDev
authored andcommitted
2 parents 0c1369a + fca73b8 commit ed044ca

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Rodrigo Pincolini
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,31 @@ The project contains some base entities to simulate tasks, categories and users.
66

77
You may need configure *appsettings.json* to get it to work.
88

9+
This is a sample, you may change it and adapt to your needs.
10+
911
## Features
1012

1113
* Entity framework ORM (tested with SQL Server)
1214
* DDD based implementation
1315
* Unit and Integration Tests
1416
* CQRS pattern for use cases
15-
* Auto logging with independent transaction
16-
* Migrations
17-
* Result pattern, avoiding throws
17+
* Cross-cutting concerns: Auto logging with independent transaction, error handler, auto rollback
18+
* Migrations system
19+
* Result pattern return, avoiding throws
1820
* Api fixed base response
21+
* Unity of Work and repository pattern
22+
* API Base result format
23+
* JWT Authentication
24+
* BCrypt for security of passwords
1925

2026
# Layers
2127

22-
The project has a layered structure as follows.
28+
The project has a layered structure as follows:
2329

2430
![image](https://github.com/user-attachments/assets/64e72fce-3414-4816-8668-91877f938ba4)
2531

32+
Note: persistence and infraestructure are the same in my project
33+
2634
## API (Presentation)
2735

2836
This layer is responsible for the presentation of the application, defining endpoints (controllers) and responses.
@@ -126,7 +134,7 @@ public sealed class Category : BaseEntity
126134

127135
## Infraestructure
128136

129-
This layer is resposabile for data persistence and other services, usually will contain the code for the ORM and return domain entities.
137+
This layer is responsable for data persistence and other services, usually will contain the code for the ORM and return domain entities.
130138

131139
In this layer we also have the persistence entities that are used by the ORM.
132140

@@ -173,7 +181,7 @@ The project contains two test projects: unit tests and integration tests.
173181

174182
In our project, unit tests were performed in the domain layer, at the entity and domain service levels, using Moq to ensure there were no external dependencies (from repositories).
175183

176-
You may need configure appsettings.Tests.json to get it to work.
184+
You may need configure *appsettings.Tests.json* to get it to work.
177185

178186
### Entities
179187
![image](https://github.com/user-attachments/assets/0750163d-ceea-4ffa-8f0a-e45068f44737)

0 commit comments

Comments
 (0)