FJuette.Template.WebApi
4.2.1
dotnet new install FJuette.Template.WebApi::4.2.1
This package contains a .NET Template Package you can call from the shell/command line.
C# Web-Api template in DDD-Style
Template for C# REST-API project.
Technologies
- .NET 8
- EF Core 8
- FluentValidation and default validation disabled
- AutoMapper
- MediatR to support CQRS style
- Swashbuckle Swagger with xml documention
- Serilog with default console output
- Unit and integration tests with XUnit
- DDD-Style model classes and Onion-Architecture
- C# 12 features enabled with nullable compiler checks
Mainly inspired by https://github.com/JasonGT/NorthwindTraders and Vladimir Khorikov https://github.com/vkhorikov
Usage
Nuget Package: https://www.nuget.org/packages/FJuette.Template.WebApi/
# Install the template from nuget
dotnet new --install FJuette.Template.WebApi
# Create a new project from the template
dotnet new ddd-webapi -n Magnus
# Remove the template
dotnet new -u FJuette.Template.WebApi
Template Architecture
Onion Style:
License
This project is licensed under the Apache License - see the LICENSE file for details.
References
- https://medium.com/agilix/entity-framework-core-enums-ee0f8f4063f2
- https://code-maze.com/migrations-and-seed-data-efcore/
- https://dev.to/integerman/eliminating-nulls-in-c-with-functional-programming-iaa
- https://medium.com/swlh/safer-code-with-c-8-non-null-reference-types-cd5241e5714
- https://medium.com/swlh/getting-lazy-in-c-ccc5fd59cb7c
- https://herbertograca.com/2017/10/19/from-cqs-to-cqrs/
- http://docs.automapper.org/en/stable/Queryable-Extensions.html
- https://herbertograca.com/2017/11/16/explicit-architecture-01-ddd-hexagonal-onion-clean-cqrs-how-i-put-it-all-together/
- https://docs.microsoft.com/en-us/ef/core/testing/testing-sample
- https://github.com/MoienTajik/MediatrTutorial/tree/master/MediatrTutorial
- https://github.com/jbogard/MediatR/wiki/Behaviors
- https://r.bluethl.net/how-to-design-better-apis
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 |
---|---|---|
4.2.1 | 1,137 | 5/24/2024 |
4.2.0 | 3,295 | 12/9/2023 |
4.1.0 | 306 | 8/2/2023 |
4.0.0 | 746 | 11/28/2022 |
3.0.0 | 456 | 12/13/2021 |
2.2.0 | 1,517 | 7/22/2021 |
2.1.0 | 566 | 7/13/2021 |
2.0.0 | 1,170 | 11/16/2020 |
1.0.6 | 516 | 9/24/2020 |
1.0.5 | 533 | 9/15/2020 |
1.0.4 | 555 | 9/7/2020 |
1.0.3 | 565 | 8/5/2020 |
1.0.2 | 585 | 5/26/2020 |
1.0.1 | 524 | 5/20/2020 |
1.0.0 | 546 | 5/20/2020 |
Third party library updates