clean-minimal-api
aspnetskeleton2
clean-minimal-api | aspnetskeleton2 | |
---|---|---|
3 | 6 | |
591 | 4 | |
- | - | |
0.0 | 0.0 | |
12 months ago | 10 months ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
clean-minimal-api
-
Advantages and disadvantages of FastEndpoints
then how about not muddying up your controller/handler with a million attributes for swagger documentation? here's a sample swagger documentation class from nick-chapsas. they can stay away from your handler keeping them lean.
-
Open source dotnet 6 (MVC and Minimal API) reference projects
clean-minimal-api
-
Small to medium RESTful APIs with EF Core, what is a good architecture default?
You can use new minimal APIs. And you can see the example repo here: https://github.com/Elfocrash/clean-minimal-api
aspnetskeleton2
-
Modern ASP Web Application with Typescript and SASS
There's another sample project which demonstrates how to set up the latter strategy. (In this case the TS compiler configuration is included in the csproj but, of course, you can use tsconfig.json as well. For that, here's another example.)
-
Small to medium RESTful APIs with EF Core, what is a good architecture default?
It's not at all. For more complex applications (which benefits from a service layer) I use exactly this architecture you described. I've built a few applications with it and it worked fine for me. If you want to take a closer look, I also have a template for this. (Haven't had the time for documentation yet but it can still give you some ideas.)
-
Table Sorting and Paging in Razor Pages
Table rendering logic (implemented as global razor helpers)
-
What are the best options for front-end minification and bundling that don't depend on node/npm?
As for TypeScript, you're kinda out of luck because the TS compiler is written in TS, so it inevitably needs a JS runtime (like node) to run. However, IMO it's strongly advisable to use TS for any client-side logic bigger than 100-200 lines of code. So regarding this I usually just accept the compromise. At least, the following setup works for me perfectly: I configure the TS compiler to emit ES6 modules and I bundle the emitted JS modules using the lib. You can find a working example of this in my web project template: tsconfig.json, bundler configuration.
-
Code Generation .net core / 5.0 / future (with templating?)
I use this code generation strategy combined with .NET Core Local Tools to generate boilerplate code (2-3 source files at specific locations) for CQS commands and queries and I'm quite satisfied with this method so far. You can check out the sources of my codegen tool here if you want to explore it. Might give you some ideas.
-
System.Text.Json Rant
But TBH the only feature I really missed when I work with STJ is polymorphism support. You don't even need a 3rd party lib for that: it requires some gymnastics but it can be implemented relatively easily by creating a custom JsonConverterFactory + JsonConverter. This implementation of mine can give you some ideas. (Also does type whitelisting based on Protobuf configuration.)
What are some alternatives?
Result - A result abstraction that can be mapped to HTTP response codes if needed.
Dahomey.Json - The main purpose of this library is to bring missing features to the official .Net namespace System.Text.Json
safe-routing - A C# source generator for ASP.NET Core razor pages and MVC controllers which produces strongly-typed identifiers for routes.
bundling - A library for optimizing and bundling web assets of ASP.NET Core applications.
Swashbuckle.AspNetCore - Swagger tools for documenting API's built on ASP.NET Core
eShopOnContainers - Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor. Moved to https://github.com/dotnet/eShop.
CleanArchitecture - Clean Architecture Solution Template for ASP.NET Core