Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/physer/microtemplate
A .NET solution template for microservices in C#
https://github.com/physer/microtemplate
clean-architecture csharp dotnet microservices visual-studio visual-studio-template
Last synced: 6 days ago
JSON representation
A .NET solution template for microservices in C#
- Host: GitHub
- URL: https://github.com/physer/microtemplate
- Owner: Physer
- License: apache-2.0
- Created: 2023-02-22T12:01:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T08:28:35.000Z (10 months ago)
- Last Synced: 2024-11-12T21:42:27.362Z (2 months ago)
- Topics: clean-architecture, csharp, dotnet, microservices, visual-studio, visual-studio-template
- Language: C#
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Microtemplate
A Visual Studio solution template for microservices in .NET/C#
## Introduction
This is a multi-project solution template for Visual Studio to quickly scaffold a microservice based on [Clean Architecture](https://jasontaylor.dev/clean-architecture-getting-started/).
You can add this template to your Visual Studio templates and use it as a starting point for creating a new Microservice without repeating yourself.
## How to use
1. Download the latest `Microtemplate.zip` file from the [Releases page](https://github.com/Physer/Microtemplate/releases)
2. Place the ZIP file in your Visual Studio user data location: `%USERPROFILE%\Documents\Visual Studio 2022\Templates\ProjectTemplates`
3. If Visual Studio was open, restart it
4. You can now create a new project using the `Microtemplate` project template## Architecture overview
This template uses Clean Architecture for its solution and project structure.
There are 5 projects created with this solution:1. Domain (Core)
2. Persistence (Infrastructure)
3. UnitTests (Tests)
4. IntegrationTests (Tests)
5. Web (Presentation)![Clean Architecture diagram](https://i0.wp.com/jasontaylor.dev/wp-content/uploads/2020/01/Figure-01-2.png?w=531&ssl=1)
© Jason Taylor## Used libraries and frameworks
* Entity Framework
* XUnit
* NSubstitute
* FluentAssertions
* AutoFixture
* Microsoft.AspNetCore.Mvc.Testing## References
- https://learn.microsoft.com/en-us/visualstudio/ide/creating-project-and-item-templates?view=vs-2022
- https://jasontaylor.dev/clean-architecture-getting-started/