-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update clean architecture setup repo structure (#21)
* Add EF core tools package * Modify the builder and services setup * Add base entity and modify structure for domain * Modify DTOs model directory * Add base response for APIs and configure model validation error response * Update structure for records in DTO to have data annotations * Add config value for auth token expiry and update formatting for user repo * Update controllers to use base response class * Update field datatype for base entity * Add automapper service * Recreate intial migration with updated fields * Update token generator to use jwt key from appsetting * Add regex model validator for password * Add summary comments for API * Remove package from domain and update entities * Add services project library * Move services to services project and update project references * Update base entity * Update html template path * Format codebase * Replace jwt key reading from env * Update email sending service file paths * Add default values for base entity * Add xml comments to classes
- Loading branch information
1 parent
8ab2bbc
commit 9c29387
Showing
52 changed files
with
700 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace DotnetFoundation.Api; | ||
|
||
public static class DotEnv | ||
|
7 changes: 6 additions & 1 deletion
7
DotnetFoundation/DotnetFoundation.Api/DotnetFoundation.Api.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
DotnetFoundation/DotnetFoundation.Api/Helpers/AutoMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using AutoMapper; | ||
using DotnetFoundation.Application.Models.DTOs.UserDTO; | ||
using DotnetFoundation.Domain.Entities; | ||
|
||
namespace DotnetFoundation.Api.Helpers; | ||
|
||
public class AutoMappingProfile : Profile | ||
{ | ||
public AutoMappingProfile() | ||
{ | ||
CreateMap<User, UserResponse>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...plates/Emails/ForgetPasswordTemplate.html → ...plates/Emails/ForgetPasswordTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<!DOCTYPE html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Forget Password Token</title> | ||
</head> | ||
<body> | ||
</head> | ||
<body> | ||
<h3>Use this token to reset your password.</h3> | ||
<p><strong>Token :</strong> {body}</p> | ||
</body> | ||
</body> | ||
</html> |
2 changes: 0 additions & 2 deletions
2
...etFoundation/DotnetFoundation.Application/DTO/AuthenticationDTO/AuthenticationResponse.cs
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
DotnetFoundation/DotnetFoundation.Application/DTO/AuthenticationDTO/LoginRequest.cs
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
DotnetFoundation/DotnetFoundation.Application/DTO/AuthenticationDTO/PasswordResetRequest.cs
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
DotnetFoundation/DotnetFoundation.Application/DTO/AuthenticationDTO/RegisterRequest.cs
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
DotnetFoundation/DotnetFoundation.Application/DTO/UserDTO/UserResponse.cs
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
DotnetFoundation/DotnetFoundation.Application/DTO/UserDTO/UserRoleRequest.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.