This project is an implementation of the Clean Architecture pattern in .NET. It is designed to separate concerns across different layers, making the system more maintainable and testable.
- CleanArchitecture.Application: Contains application logic and business rules.
- CleanArchitecture.Domain: Contains domain entities and aggregates.
- CleanArchitecture.Persistence: Manages data access and storage.
- CleanArchitecture.WebAPI: Exposes the application functionality via RESTful APIs.
- CleanArchitecture.UnitTest: Contains unit tests for the application.
git clone https://github.com/your-repo/clean-architecture.git
cd clean-architecturedotnet restoredotnet buildNavigate to the CleanArchitecture.WebAPI directory and run:
dotnet runThe application will start and be accessible at http://localhost:5000.
To apply migrations, use the following command:
dotnet ef migrations add Initial --project CleanArchitecture.Persistence --startup-project CleanArchitecture.WebAPI
dotnet ef database update --project CleanArchitecture.Persistence --startup-project CleanArchitecture.WebAPITo execute the unit tests, run the following command in the root directory:
dotnet testContributions are welcome! Please fork the repository and submit a pull request for review.
This project is licensed under the MIT License.
This project based on https://github.com/juldhais/CleanArchitecture