Skip to content

Physer/Microtemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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
  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 © Jason Taylor

Used libraries and frameworks

  • Entity Framework
  • XUnit
  • NSubstitute
  • FluentAssertions
  • AutoFixture
  • Microsoft.AspNetCore.Mvc.Testing

References