CleanGraphQLApi.Template
2021.11.20.17
See the version list below for details.
dotnet new install CleanGraphQLApi.Template::2021.11.20.17
Clean GraphQL API
This is a sample application to be an example of using Clean Architecture alongside a .net implementation of GraphQL.
Features
- Logging using Serilog
- Mediator Pattern using Mediatr
- Validation using FluentValidation
- Testing using Shouldly and NSubstitute
- GraphQL using GraphQL for .NET
Docker
There's a dockerfile included in the build folder and serves the purpose of restoring, building, testing, publishing and then creating a runtime image of the API. Works on my machine.....
docker build . -t cleangraphqlapi:latest --build-arg CACHE_BUST 1
You can pull the public version of this image using
docker pull stphnwlsh/cleangraphqlapi
Prerequisites
This solution depends on the pre-release SDK for .net 6, you need to install that before it will work for you.
Projects
This solution contains a few projects to follow the Clean Architecture patterns, it's by no means perfect. But it's an example so cut me some slack. Each project has a purpose and is separated from the others, for a far more well thought out solution please see Jason Taylor's Clean Architecture Template
Resources
This sample would not have been possible without gaining inspiration from the following resources. If you are on your own learning adventure please read the following blogs and documentation.
Support
I'm sharing some of my work here and if it helps you, I'd love it if you'd consider supporting me.
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 |
---|---|---|
2022.7.4.52 | 641 | 7/4/2022 |
2022.7.4.51 | 542 | 7/4/2022 |
2022.7.4.50 | 493 | 7/4/2022 |
2022.7.4.49 | 482 | 7/4/2022 |
2022.7.4.48 | 489 | 7/4/2022 |
2022.7.4.47 | 506 | 7/4/2022 |
2022.7.4.46 | 474 | 7/4/2022 |
2022.7.2.45 | 508 | 7/2/2022 |
2022.3.13.44 | 598 | 3/13/2022 |
2022.2.27.43 | 556 | 2/27/2022 |
2022.2.20.42 | 575 | 2/20/2022 |
2022.2.13.41 | 532 | 2/13/2022 |
2022.1.30.40 | 539 | 1/30/2022 |
2022.1.23.39 | 528 | 1/23/2022 |
2022.1.16.38 | 557 | 1/16/2022 |
2022.1.9.37 | 413 | 1/9/2022 |
2022.1.2.36 | 362 | 1/2/2022 |
2021.12.19.35 | 429 | 12/19/2021 |
2021.12.12.34 | 417 | 12/12/2021 |
2021.12.5.32 | 703 | 12/5/2021 |
2021.12.1.31 | 389 | 12/1/2021 |
2021.11.29.28 | 870 | 11/29/2021 |
2021.11.27.26 | 349 | 11/27/2021 |
2021.11.26.25 | 1,716 | 11/26/2021 |
2021.11.26.24 | 1,659 | 11/26/2021 |
2021.11.26.23 | 1,630 | 11/26/2021 |
2021.11.26.22 | 3,287 | 11/26/2021 |
2021.11.26.21 | 2,777 | 11/26/2021 |
2021.11.20.20 | 641 | 11/20/2021 |
2021.11.20.19 | 652 | 11/20/2021 |
2021.11.20.18 | 664 | 11/20/2021 |
2021.11.20.17 | 654 | 11/20/2021 |