Welcome to dotnet-core-by-example, your one-stop repository designed to guide you through the multifaceted world of .NET Core, one practical example at a time! Tailored to both newcomers and seasoned developers in the .NET ecosystem, this repository paves a hands-on journey through various aspects, tools, and best practices of .NET Core development.
Follow me on Medium
The "Secure API Key" project in the repository illustrates a fundamental example of enhancing API security in a .NET Core 7 application. It provides hands-on guidance on implementing API key authentication using middleware to safeguard API endpoints against unauthorized access. Through clear code examples and structured configuration management, developers can navigate through the essential steps of securing API communications in a simplistic and efficient manner.
A cutting-edge .NET 8 Blazor Web App project that showcases the implementation of the vertical slice architecture. By eschewing the traditional controller-based approach, this sample demonstrates a streamlined and feature-focused structure that elevates maintainability and scalability in modern web applications. Leveraging the power of .NET 8, the project provides a practical example of how to organize and structure a Blazor application into cohesive vertical slices. Each slice represents a self-contained feature with its own request, processing, and response flow, fostering a clean separation of concerns and modular development. Read the full article here