CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
File Explorer
Download Latest Version (.zip)- settings.json
- devcontainer.json
- README.md
- bug_report.md
- config.yml
- feature_request.md
- build.yml
- codeql.yml
- release.yml
- test-templates.yml
- FUNDING.yml
- icon.png
- dotnetcli.host.json
- icon.png
- ide.host.json
- template.json
- build.ps1
- repack.ps1
- test.ps1
- ADR-000-template.md
- ADR-001-Use-EFCore-In-Application-Layer.md
- ADR-002-Aspire-For-Orchestration-And-Testing.md
- ADR-003-MediatR-Contracts-In-Domain.md
- README.md
- launchSettings.json
- AppHost.csproj
- appsettings.Development.json
- appsettings.json
- Extensions.cs
- Program.cs
- AuthorizationBehaviour.cs
- LoggingBehaviour.cs
- PerformanceBehaviour.cs
- UnhandledExceptionBehaviour.cs
- ValidationBehaviour.cs
- ForbiddenAccessException.cs
- ValidationException.cs
- IApplicationDbContext.cs
- IIdentityService.cs
- IUser.cs
- LookupDto.cs
- Result.cs
- AuthorizeAttribute.cs
- CreateTodoItem.cs
- CreateTodoItemCommandValidator.cs
- DeleteTodoItem.cs
- UpdateTodoItem.cs
- UpdateTodoItemCommandValidator.cs
- UpdateTodoItemDetail.cs
- LogTodoItemCompleted.cs
- CreateTodoList.cs
- CreateTodoListCommandValidator.cs
- DeleteTodoList.cs
- UpdateTodoList.cs
- UpdateTodoListCommandValidator.cs
- GetTodos.cs
- TodoItemDto.cs
- TodoListDto.cs
- TodosVm.cs
- GetWeatherForecastsQuery.cs
- WeatherForecast.cs
- Application.csproj
- DependencyInjection.cs
- GlobalUsings.cs
- BaseAuditableEntity.cs
- BaseEntity.cs
- BaseEvent.cs
- ValueObject.cs
- Roles.cs
- TodoItem.cs
- TodoList.cs
- PriorityLevel.cs
- TodoItemCompletedEvent.cs
- UnsupportedColourException.cs
- Colour.cs
- Domain.csproj
- GlobalUsings.cs
- TodoItemConfiguration.cs
- TodoListConfiguration.cs
- AuditableEntityInterceptor.cs
- DispatchDomainEventsInterceptor.cs
- ApplicationDbContext.cs
- ApplicationDbContextInitialiser.cs
- ApplicationUser.cs
- IdentityResultExtensions.cs
- IdentityService.cs
- DependencyInjection.cs
- GlobalUsings.cs
- Infrastructure.csproj
- Extensions.cs
- ServiceDefaults.csproj
- Services.cs
- Shared.csproj
- login.component.html
- login.component.ts
- register.component.html
- register.component.ts
- auth.guard.ts
- auth.service.ts
- authorize.interceptor.spec.ts
- authorize.interceptor.ts
- counter.component.html
- counter.component.spec.ts
- counter.component.ts
- fetch-data.component.html
- fetch-data.component.ts
- home.component.html
- home.component.ts
- nav-menu.component.html
- nav-menu.component.scss
- nav-menu.component.ts
- theme-toggle.component.html
- theme-toggle.component.ts
- todo.component.html
- todo.component.scss
- todo.component.ts
- weather.component.html
- weather.component.ts
- app.component.html
- app.component.ts
- app.module.ts
- app.server.module.ts
- theme.service.ts
- .gitkeep
- environment.prod.ts
- environment.ts
- favicon.png
- index.html
- main.ts
- polyfills.ts
- styles.scss
- test.ts
- .editorconfig
- .gitignore
- angular.json
- karma.conf.js
- nswag.json
- package-lock.json
- package.json
- proxy.conf.js
- README.md
- tsconfig.app.json
- tsconfig.json
- tsconfig.spec.json
- favicon.png
- manifest.webmanifest
- AuthContext.jsx
- LoginPage.jsx
- ProtectedRoute.jsx
- RegisterPage.jsx
- Counter.jsx
- Home.jsx
- Layout.jsx
- NavMenu.jsx
- ThemeContext.jsx
- ThemeToggle.jsx
- Todo.jsx
- Weather.jsx
- App.jsx
- AppRoutes.jsx
- main.jsx
- styles.scss
- vite-env.d.ts
- .env
- .env.development
- .gitignore
- aspnetcore-https.cjs
- index.html
- nswag.json
- package-lock.json
- package.json
- README.md
- tsconfig.json
- vite.config.ts
- TodoItems.cs
- TodoLists.cs
- Users.cs
- WeatherForecasts.cs
- ApiExceptionOperationTransformer.cs
- BearerSecuritySchemeTransformer.cs
- EndpointRouteBuilderExtensions.cs
- IdentityApiOperationTransformer.cs
- IEndpointGroup.cs
- MethodInfoExtensions.cs
- ProblemDetailsExceptionHandler.cs
- WebApplicationExtensions.cs
- launchSettings.json
- CurrentUser.cs
- favicon.ico
- appsettings.json
- appsettings.PostgreSQL.json
- appsettings.SQLite.json
- appsettings.SQLServer.json
- DependencyInjection.cs
- GlobalUsings.cs
- Program.cs
- Web-webapi.http
- Web.csproj
- Web.http
- dotnetcli.host.json
- icon.png
- template.json
- CleanArchitectureUseCase.cs
- CleanArchitectureUseCase.cs
- DatabaseResetter.cs
- TestApp.cs
- TestBase.cs
- WebApiFactory.cs
- CreateTodoItemTests.cs
- DeleteTodoItemTests.cs
- UpdateTodoItemDetailTests.cs
- UpdateTodoItemTests.cs
- CreateTodoListTests.cs
- DeleteTodoListTests.cs
- UpdateTodoListTests.cs
- GetTodosTests.cs
- Application.FunctionalTests.csproj
- FunctionalTestSetup.cs
- GlobalUsings.cs
- RequestLoggerTests.cs
- ValidationExceptionTests.cs
- MappingTests.cs
- Application.UnitTests.csproj
- ColourTests.cs
- Domain.UnitTests.csproj
- GlobalUsings.cs
- Infrastructure.IntegrationTests.csproj
- Program.cs
- TestAppHost.csproj
- Counter.feature
- Home.feature
- Login.feature
- Weather.feature
- BasePage.cs
- CounterPage.cs
- HomePage.cs
- LoginPage.cs
- WeatherPage.cs
- CounterStepDefinitions.cs
- HomeStepDefinitions.cs
- LoginStepDefinitions.cs
- WeatherStepDefinitions.cs
- AspireSetup.cs
- GlobalUsings.cs
- PlaywrightSetup.cs
- Web.AcceptanceTests.csproj
- .editorconfig
- .gitignore
- CleanArchitecture.nuspec
- CleanArchitecture.slnx
- CODE_OF_CONDUCT.md
- Directory.Build.props
- Directory.Packages.props
- global.json
- LICENSE
- README-template.md
- README.md
- renovate.json
# Installation Guide
1. Get the code
git clone https://github.com/jasontaylordev/CleanArchitecture
Downloads the entire project code from GitHub to your computer.
cd CleanArchitecture
Moves into the project folder you just downloaded.
2. .NET
Medium RecommendedPrerequisites
dotnet new install Clean.Architecture.Solution.Template
Type this command into your terminal and run it.
dotnet new ca-sln --client-framework [angular|react|none] --database [postgresql|sqlite|sqlserver] --output YourProjectName
Type this command into your terminal and run it.
dotnet new ca-sln -cf angular -db postgresql -o YourProjectName
Type this command into your terminal and run it.
dotnet new ca-sln -cf react -db sqlserver -o YourProjectName
Type this command into your terminal and run it.
dotnet new ca-sln -cf none -db sqlite -o YourProjectName
Type this command into your terminal and run it.
After dotnet run, check the message or address shown in the terminal.
Pulled directly from this repo's README.
3. Node.js
EasyPrerequisites
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd src/Web/ClientApp-React
This project's files live in a subfolder, so move into it first.
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
// repository documentation
Was this content helpful?
(0 ratings)
