MSA.Templates 1.3.0

This package has a SemVer 2.0.0 package version: 1.3.0+21.
dotnet new install MSA.Templates::1.3.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

Microservice Architecture Templates

This project contains a set of templates to build an application following specific microservice architecture guidelines that have evolved over the years

NuGet Release codecov

Table of contents

Template Installation

Install the latest version of the MSA.Templates package:

dotnet new install MSA.Templates

Quick start

using the script

.\generator.ps1 `
-ServiceName AwesomeApp `
-RabbitMqUserSecret rabbitmq-default-user `
-MongoDbUserSecret mongodb-server-admin-admin `
-RedisServiceName redis `
-RedisServiceNamespace redis-system `
-DestinationFolder c:/git

or manually

mkdir -p c:/git/awesome/src
cp ./k8s c:/git/awesome/
cd c:/git/awesome/src
dotnet new msa-shared -n Awesome -o shared
dotnet new msa-worker -n Awesome -o worker
dotnet new msa-api -n Awesome -o api
dotnet new msa-web -n Awesome -o web

Microservice Architecture Worker

This creates a layered .net application specifically designed for handling domain events and is preconfigured to run in a Kubernetes environment.

graph LR;
    Wb[Web]-->A[API];
    A-->Wb;
    A-->W;
    W[Worker]-->A;
    style W fill:#555

To create a worker execute the following command, replacing Awesome with your domain name (e.g. Accounting or Products):

dotnet new msa-worker -n Awesome -o worker

🚀 Check the wiki about worker services for details about setting up and using this service type.

Microservice Architecture API

This creates a layered .net 6 application specifically designed for handling API calls and generating domain commands and is preconfigured to run in a Kubernetes environment.

graph LR;
    Wb[Web]-->A[API];
    A-->Wb;
    A-->W;
    W[Worker]-->A;
    style A fill:#555

To create an api execute the following command, replacing Awesome with your domain name (e.g. Accounting or Products):

dotnet new msa-api -n Awesome -o api

🚀 Check the wiki about api services for details about setting up and using this service type.

Microservice Architecture Web

This creates a blank Angular Next application hosted in a nginx container and is preconfigured to run in a Kubernetes environment and uses Transloco to manage translations.

graph LR;
    Wb[Web]-->A[API];
    A-->Wb;
    A-->W;
    W[Worker]-->A;
    style Wb fill:#555

To create an api execute the following command, replacing Awesome with your domain name (e.g. Accounting or Products):

dotnet new msa-web -n Awesome -o web

🚀 Check the wiki about web services for details about setting up and using this service type.

How to contribute

Feel free to create a PR if you feel something is missing!

  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0 77 4/16/2025
1.2.16 158 1/30/2025
1.2.9 150 11/6/2024
1.2.7 147 11/6/2024
1.2.5 200 7/23/2024
1.2.4 146 7/23/2024
1.2.2 187 6/25/2024
1.2.1 174 6/7/2024
1.2.0 180 6/4/2024
1.1.12 172 6/1/2024
1.1.11 206 5/28/2024
1.1.10 662 5/7/2024
1.1.9 186 5/6/2024
1.1.7 168 5/1/2024
1.1.5 135 5/1/2024
1.1.4 148 5/1/2024
1.1.2 233 4/2/2024
1.1.1 194 4/2/2024
1.1.0 236 4/2/2024
1.0.13 806 2/28/2024
1.0.12 237 2/28/2024
1.0.11 284 2/26/2024
1.0.9 502 2/14/2024
1.0.7 826 1/21/2024
1.0.6 176 1/21/2024
1.0.5 2,404 11/2/2023
1.0.3 828 10/13/2023
1.0.2 438 8/22/2023