/clean-arch-generator

Scaffold Clean Architecture .Net Core projects quickly.

Primary LanguageC#

Clean Architecture Generator

CleanArchGen is a tool to generate a scaffolding .Net Core project based on the Clean Architecture style

The Clean Architecture - Uncle Bob

Tired to run dotnet command or use plugins to scaffold projects? CleanArchGen will help you, see how in the Features section below.

CleanArchGen will deliver an application running in the following architecture :

CleanArchGen Image

This architecture was inspired on Herberto Graca article, where I found this beautiful image:

CleanArchHerberto

Features

- Create solution file
- Create src folder
- Create Domain layer
- Create Application layer
- Create Infra layer
- Create Api or Console layer
- Add projects on solution
- Reference projects
    - Application -> Domain
    - Infra -> Application
    - Infra -> Domain
    - Api or Console -> Application
    - Api or Console -> Domain
    - Api or Console -> Infra
- Create tests folder
- Create test pyramid folder
    - Create UnitTests project
    - Create IntegrationTests project
    - Create FunctionalTests project
    - Reference project into test projects
- Create .gitignore file
- Create README.md file
- Build project

Getting Started

TBD

Prerequisites

.NET Core 3.1

Installing

TBD

Running the tests

Run command on the solution file (.sln) folder :

dotnet test

Running the mutation tests

If you don't have dotnet-stryker installed, go to the root of the project and run

dotnet tool restore

On tests/CleanArchGen.UnitTests run

dotnet stryker --project-file=[projectfile]

Deployment

TBD

Built With

Versioning

TBD

Authors

  • Vinicius Pfeifer

See also the list of contributors who participated in this project.

License

TBD