Clean.Lean.Architecture.WebApi.AspNetCore.Solution.Template
8.3.0
See the version list below for details.
dotnet new install Clean.Lean.Architecture.WebApi.AspNetCore.Solution.Template::8.3.0
Clean Lean Architecture Solution Template
Summary
The objective of this .NET Core template is to expedite the process for developers to swiftly establish a .NET Core Web API project that adheres to clean architecture principles.
If you find this project useful, please give it a star on github. Thanks! ⭐
Getting Started
The easiest way to get started is to install the .NET template:
dotnet new install Clean.Lean.Architecture.WebApi.AspNetCore.Solution.Template
Once installed, create a new solution using the template.
dotnet new cla-sln --name YourSolutionName
Launch the app:
cd <sln-name>\src\WebApi\
dotnet run
Configure Database
This solution uses EF Core with SQL Server localDB.
To switch with your SQL server connection string update the following value in appsettings.json
, or alternatively you can continue to use localDB.
<code>
"Persistence": {
"SqlServerConnectionString": "Server=(localdb)\mssqllocaldb;Database=clean-app-db;Trusted_Connection=True;MultipleActiveResultSets=true"
}</code>
To run a database migration
dotnet ef migrations add "MyMigrationName" --project .\src\Infrastructure\ --startup-project .\src\WebApi\
To update your database with schema updates
dotnet ef database update --project .\src\WebApi\WebApi.csproj
Note that you might need to install dotnet ef tools first before you run db migrations and updates : dotnet tool install --global dotnet-ef
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
9.1.0 | 222 | 11/22/2024 |
9.0.0 | 136 | 11/20/2024 |
8.3.5 | 459 | 4/27/2024 |
8.3.4 | 248 | 4/12/2024 |
8.3.3 | 190 | 4/2/2024 |
8.3.2 | 208 | 4/1/2024 |
8.3.1 | 223 | 4/1/2024 |
8.3.0 | 195 | 3/31/2024 |
8.2.1 | 543 | 3/9/2024 |
8.2.0 | 238 | 3/9/2024 |
8.1.0 | 960 | 2/9/2024 |
8.0.0 | 523 | 1/27/2024 |
0.5.0 | 3,247 | 10/2/2023 |
0.4.0 | 363 | 9/30/2023 |
0.3.0 | 333 | 9/21/2023 |
0.2.0 | 279 | 9/17/2023 |
0.1.0 | 245 | 9/13/2023 |
0.0.3 | 301 | 9/13/2023 |
0.0.2 | 289 | 9/11/2023 |
0.0.1 | 320 | 9/10/2023 |