Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
https://github.com/jasontaylordev/CleanArchitecture
angular aspnetcore clean-architecture entity-framework-core react template webapi
Last synced: about 2 months ago
JSON representation
Clean Architecture Solution Template for ASP.NET Core
- Host: GitHub
- URL: https://github.com/jasontaylordev/CleanArchitecture
- Owner: jasontaylordev
- License: mit
- Created: 2019-10-07T18:44:32.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T23:06:11.000Z (8 months ago)
- Last Synced: 2024-05-02T01:10:02.903Z (8 months ago)
- Topics: angular, aspnetcore, clean-architecture, entity-framework-core, react, template, webapi
- Language: C#
- Homepage:
- Size: 3.53 MB
- Stars: 15,654
- Watchers: 382
- Forks: 3,354
- Open Issues: 40
-
Metadata Files:
- Readme: README-template.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome - jasontaylordev/CleanArchitecture - Clean Architecture Solution Template for ASP.NET Core (C\#)
- awesome-starred-test - jasontaylordev/CleanArchitecture - Clean Architecture Solution Template for ASP.NET Core (C# #)
- awesome-dotnet-core-applications - **clean-architecture** - is a clean architecture template. (Sample & Reference Applications)
- StarryDivineSky - jasontaylordev/CleanArchitecture - 只需安装 .NET 模板。 (网络服务 / 网络服务_其他)
README
# CleanArchitecture
The project was generated using the [Clean.Architecture.Solution.Template](https://github.com/jasontaylordev/CleanArchitecture) version caPackageVersion.
## Build
Run `dotnet build -tl` to build the solution.
## Run
To run the web application:
```bash
cd .\src\Web\
dotnet watch run
```Navigate to https://localhost:5001. The application will automatically reload if you change any of the source files.
## Code Styles & Formatting
The template includes [EditorConfig](https://editorconfig.org/) support to help maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The **.editorconfig** file defines the coding styles applicable to this solution.
## Code Scaffolding
The template includes support to scaffold new commands and queries.
Start in the `.\src\Application\` folder.
Create a new command:
```
dotnet new ca-usecase --name CreateTodoList --feature-name TodoLists --usecase-type command --return-type int
```Create a new query:
```
dotnet new ca-usecase -n GetTodos -fn TodoLists -ut query -rt TodosVm
```If you encounter the error *"No templates or subcommands found matching: 'ca-usecase'."*, install the template and try again:
```bash
dotnet new install Clean.Architecture.Solution.Template::caPackageVersion
```## Test
The solution contains unit, integration, and functional tests.
To run the tests:
```bash
dotnet test
```The solution contains unit, integration, functional, and acceptance tests.
To run the unit, integration, and functional tests (excluding acceptance tests):
```bash
dotnet test --filter "FullyQualifiedName!~AcceptanceTests"
```To run the acceptance tests, first start the application:
```bash
cd .\src\Web\
dotnet run
```Then, in a new console, run the tests:
```bash
cd .\src\Web\
dotnet test
```## Help
To learn more about the template go to the [project website](caRepositoryUrl). Here you can find additional guidance, request new features, report a bug, and discuss the template with other users.