Clean-Architecture-Template
π§Ή Ready to develop template based on clean architecture principles. Supports ASP NET Core Identity integrated with JWE tokens, OTP authentication, stand alone plugin development, CQRS pattern using MediatR library and dynamic permission management system out of the box
File Explorer
Download Latest Version (.zip)- package.yml
- icon.png
- template.json
- AdminManagerController.cs
- OrderManagementController.cs
- RoleManagerController.cs
- UserManagementController.cs
- OrderController.cs
- UserController.cs
- launchSettings.json
- appsettings.Development.json
- appsettings.json
- CleanArc.Web.Api.csproj
- Program.cs
- ProducesOkApiResponseTypeAttribute.cs
- BaseController.cs
- BadRequestResultEndpointFilter.cs
- ModelStateValidationEndpointFilter.cs
- NotFoundResultEndpointFilter.cs
- OkResultEndpointFilter.cs
- ApiResultFilterAttribute.cs
- BadRequestResultFilterAttribute.cs
- ContentResultFilterAttribute.cs
- ModelStateValidationAttribute.cs
- NotFoundResultAttribute.cs
- OkResultAttribute.cs
- ServerErrorResult.cs
- ExceptionHandler.cs
- ServiceCollectionExtension.cs
- ApiVersionDocumentProcessor.cs
- ApplySummariesOperationFilter.cs
- CustomTokenRequiredOperationFilter.cs
- RequireTokenWithoutAuthorizationAttribute.cs
- SwaggerConfigurationExtensions.cs
- CleanArc.WebFramework.csproj
- OrderGrpcServiceModels.proto
- UserGrpcServiceModels.proto
- OrderGrpcServices.cs
- UserGrpcServices.cs
- CleanArc.Web.Plugins.Grpc.csproj
- GrpcPluginStartup.cs
- LoggingBehavior.cs
- MetricsBehaviour.cs
- ValidateCommandBehavior.cs
- IAppUserManager.cs
- IRoleManagerService.cs
- IOrderRepository.cs
- IUnitOfWork.cs
- IUserRefreshTokenRepository.cs
- IJwtService.cs
- AddAdminCommand.cs
- AddAdminCommand.Handler.cs
- AdminGetTokenQuery.cs
- AdminGetTokenQuery.Handler.cs
- AdminGetTokenQuery.Result.cs
- AddOrderCommand.cs
- AddOrderCommand.Handler.cs
- DeleteUserOrdersCommand.cs
- DeleteUserOrdersCommand.Handler.cs
- UpdateUserOrderCommand.cs
- UpdateUserOrderCommand.Handler.cs
- GetAllOrdersQuery.cs
- GetAllOrdersQueryHandler.cs
- GetAllOrdersQueryResult.cs
- GetUserOrdersQueryHandler.cs
- GetUserOrdersQueryModel.cs
- GetUsersQueryResultModel.cs
- AddRoleCommand.cs
- AddRoleCommand.Handler.cs
- UpdateRoleClaimsCommand.cs
- UpdateRoleClaimsCommand.Handler.cs
- GetAllRolesQuery.cs
- GetAllRolesQuery.Handler.cs
- GetAllRolesQuery.Response.cs
- GetAuthorizableRoutesQuery.cs
- GetAuthorizableRoutesQuery.Handler.cs
- GetAuthorizableRoutesQuery.Response.cs
- UserCreateCommand.cs
- UserCreateCommand.Handler.cs
- UserCreateCommand.Result.cs
- RefreshUserTokenCommand.cs
- RefreshUserTokenCommand.Handler.cs
- RequestLogoutCommand.cs
- RequestLogoutCommand.Handler.cs
- GenerateUserTokenQuery.cs
- GenerateUserTokenQuery.Handler.cs
- GetUsersQuery.cs
- GetUsersQuery.Handler.cs
- GetUsersQuery.Response.cs
- PasswordUserTokenRequestQuery.cs
- PasswordUserTokenRequestQuery.Handler.cs
- UserTokenRequestQuery.cs
- UserTokenRequestQuery.Handler.cs
- UserTokenRequestQuery.Response.cs
- ApiResult.cs
- ApiResultStatusCodecs.cs
- OperationResult.cs
- ActionDescriptionDto.cs
- CreateRoleDto.cs
- EditRolePermissionsDto.cs
- GetRolesDto.cs
- RolePermissionDto.cs
- AccessToken.cs
- TokenRequest.cs
- ServiceCollectionExtension.cs
- CleanArc.Application.csproj
- BaseEntity.cs
- Order.cs
- Role.cs
- RoleClaim.cs
- User.cs
- UserClaim.cs
- UserLogin.cs
- UserRefreshToken.cs
- UserRole.cs
- UserToken.cs
- CleanArc.Domain.csproj
- LoggingConfiguration.cs
- CleanArc.Infrastructure.CrossCutting.csproj
- KeyRing.cs
- LookupProtector.cs
- PersonalDataProtector.cs
- ProtectorAlgorithmHelper.cs
- CustomIdentityConstants.cs
- IdentitySettings.cs
- CustomIdentityExtensions.cs
- AppRoleManager.cs
- AppSignInManager.cs
- AppUserManager.cs
- ConstantPolicies.cs
- DynamicPermissionRequirement.cs
- DynamicPermissionService.cs
- IDynamicPermissionService.cs
- RoleManagerService.cs
- SeedDataBase.cs
- AppUserStore.cs
- RoleStore.cs
- AppRoleValidator.cs
- AppUserValidator.cs
- AppErrorDescriber.cs
- AppUserClaimsPrincipleFactory.cs
- JwtService.cs
- ServiceCollectionExtension.cs
- AppUserManagerImplementation.cs
- CleanArc.Infrastructure.Identity.csproj
- HealthCheckConfigurations.cs
- OpenTelemetryConfigurations.cs
- PrometheusMetricsConfigurations.cs
- CleanArc.Infrastructure.Monitoring.csproj
- OrderConfig.cs
- RefreshTokenConfig.cs
- RoleClaimConfig.cs
- RoleConfig.cs
- UserClaimConfig.cs
- UserConfig.cs
- UserLoginConfig.cs
- UserRoleConfig.cs
- UserTokenConfig.cs
- 20210327210004_Init.cs
- 20210327210004_Init.Designer.cs
- 20221205084354_AddedOrderAndUserRelation.cs
- 20221205084354_AddedOrderAndUserRelation.Designer.cs
- 20231126140035_AddedOrderDeleteFlag.cs
- 20231126140035_AddedOrderDeleteFlag.Designer.cs
- ApplicationDbContextModelSnapshot.cs
- BaseAsyncRepository.cs
- UnitOfWork.cs
- OrderRepository.cs
- UserRefreshTokenRepository.cs
- ServiceCollectionExtensions.cs
- ApplicationDbContext.cs
- CleanArc.Infrastructure.Persistence.csproj
- AssemblyExtensions.cs
- CollectionExtensions.cs
- EnumExtentions.cs
- IdentityExtensions.cs
- ModelBuilderExtensions.cs
- ReflectionExtensions.cs
- RegExHelpers.cs
- StringExtensions.cs
- ValidatorExtensions.cs
- IValidatableModel.cs
- ApplicationBaseValidationModelProvider.cs
- CleanArc.SharedKernel.csproj
- CleanArc.Test.Infrastructure.Identity.csproj
- UserManagerTest.cs
- Usings.cs
- TestApplicationDbContext.cs
- TestIdentitySetup.cs
- CleanArc.Tests.Setup.csproj
- Usings.cs
- .gitattributes
- .gitignore
- CleanArcTemplate.nuspec
- CleanArcTemplate.sln
- Directory.Packages.props
- docker-compose.yml
- Dockerfile
- LICENSE.md
- README.md
# Installation Guide
git clone https://github.com/babaktaremi/Clean-Architecture-Template
Downloads the entire project code from GitHub to your computer.
cd Clean-Architecture-Template
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t bobby-cleanarc -f Dockerfile .
Builds a runnable image based on the Dockerfile.
docker-compose up -d
Runs the command against the services defined in the compose file.
Pulled directly from this repo's README.
3. .NET
Mediumdotnet new install Bobby.CleanArcTemplate
Type this command into your terminal and run it.
dotnet new ca-template
Type this command into your terminal and run it.
dotnet dev-certs https -ep $env:USERPROFILE/.aspnet/https/cleanarc.pfx -p Strong@Password
Type this command into your terminal and run it.
dotnet dev-certs https --trust
Type this command into your terminal and run it.
Pulled directly from this repo's README.
