
ASP.NET Core Hero Boilerplate - .NET 5 Clean Architecture
- by Mukesh Murugan
ASP.NET Core Hero Boilerplate – Clean Architecture Solution Template for ASP.NET Core 5.0. Built with Onion/Hexagonal Architecture and incorporates the most essential Packages your projects will ever need. Includes both WebApi and Web(MVC) Projects.
Have you already Installed the Template?
make sure to update the template once every few days to stay updated.
you can reinstall the template again to get it updated.
Features
- Onion Architecture - WebAPI & MVC
- CQRS with MediatR Library
- Entity Framework Core – Code First
- Permission Management
- MediatR Pipeline Logging & Validation
- Serilog
- Swagger UI
- Response Wrappers
- Entity Framework Core - Audit Logs.
- Pagination
- Microsoft Identity with JWT Authentication
- Role based Authorization
- Database Seeding
- Custom Exception Handling Middleware.
- API Versioning
- Complete User Management Module (Register / Generate Token / Forgot Password / Confirmation Mail)
The Vision.
An idea to bring together the best and essential practices / pacakges of ASP.NET Core 5.0 along with Clean Hexagonal Architecture that can be a right fit for small/mid and enterprise level solutions. How easy would it be if you are able to run a single line of CLI command on your Console and you get a complete implementation in no time? That’s the exact vision I have while building this full fledged Boilerplate template.
How this Project can help you?
- Generate Ready-made .NET 5 Clean Architecture Solutions within seconds!
- A perfect starting point to learn about various essential packages and architecture.
- Since the template includes both WebAPI and MVC, it suits literally any .NET enthusiast out there.
- Feel free to contribute to this project and associated packages to build up your GitHub contributions 😀
As easy as this…



Awesome things come in smaller packages!
Install the Nuget Package and Start Generating Pre-Built .NET 5 Solution with Clean Architecture (MVC & WebApi)
.NET 5 - WebAPI & MVC
This is a Standalone ASP.NET Core WebAPI Solution with multiple Layers of Abstraction. The Library Projects are build on .NET Core 3.1 Libraries / .NET Standard 2.1 Libraries.
One-Click Install
Clean Architecture for .NET 5 Solutions can be generated by just typing in a single line of Command. It can't get any easier than this!
Open Source
This Project is licensed under the MIT License, which means it is FREE to use, distribute. Feel free to contribute to this project as well. Let’s make this The Best Ever Template for .NET 5!
Getting Started with .NET 5 Clean Architecture
More Documentations coming soon.
7 Comments
Hi Mukesh, thank you so much for this great work ! do you think it is a good idea to add 2 others projects to the template : an “integration test” project and a “unit test” project …. with samples to show how the tests should be approaches with architecture… ?
Again, I really like your good job ! Thanks you !
Mick
Hi Mick, Yes that would be great. I too have it in mind. Just not finding enough time to add test cases. I Will put it up on my list though 😀
Again, thank you for this great work you done ! I really like and learn from it !
I would like to let you know that I have cloned your source code from Github and build it in my development environment it is working fine, but when I try to publish this and host it to iis I am getting server error 500.
I am getting issues on //Read Configuration from appSettings
var config = new ConfigurationBuilder()
.AddJsonFile(“appsettings.json”)
.Build();
Json Parsing issue.
I have only made changes in the connection string and nothing else.
Hi to all
I’m beginner so I need some help haw to start
This is awesome! I plan to play around with it this week. I am curious with everyone moving to Angular, React, or Vue; why did you chose MVC for the front end? I need to make this decision for a project and am curious on your input.
Hi. Nothing very specific actually. People build client applications using React etc. But the project that I included is not a client application. It’s a complete application with direct access to the app layer without consuming the API. If I were to go for a client application, I would have chosen Angular or Blazor.
Regards.