SC.Microservice.Template 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet new install SC.Microservice.Template::1.3.0                
This package contains a .NET Template Package you can call from the shell/command line.

SC.Microservice.Template

The application is written in the .Net - using .NET 6. This is solution template for creating Api following the principles of Clean Architecture. Create new project base on this template by setup Nuget package.

Installation

  • Install the latest .NET 6 SDK.
  • Install RabbitMQ latest.

Install the dotnet new template:

dotnet new install SC.Microservice.Template::1.3.0

Create new project:

dotnet new sc-micro-sln -n MyProjectName

Technologies:

  • ASP.NET 6
  • Entity Framework Core 6
  • MediatR
  • AutoMapper
  • MassTransit
  • RabbitMQ
  • Serilog

Database :

Db type support SQLServer, MariaDB, PostgerSQL. The template is configured to use SQL Server by default. If you would prefer to use MariaDB or PostgerSQL, change "DatabaseType" in file: "appsettings.json"

Clean.API:

  • Change ConnectionStrings in appsettings.json

Clean.Infrastructure:

  • Create local database
  • Open View : Package Manager Console (Visual Studio). Change Default project to "microservices\Application\Clean.Infrastructure"
  • Run command:
PM> Update-database 

Inventory.API:

  • Change ConnectionStrings in appsettings.json

Inventory.Infrastructure:

  • Create local database
  • Open View : Package Manager Console (Visual Studio). Change Default project to "microservices\Inventory\Inventory.Infrastructure"
  • Run command:
PM> Update-database 

Support

If you are having problems, please let me know by: https://nguyenson1303.blogspot.com/

License

MIT

  • net6.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
3.0.0 2,619 12/14/2023
2.0.0 251 9/8/2023
1.3.1 196 9/5/2023
1.3.0 220 8/31/2023
1.2.0 258 8/29/2023
1.1.1 276 8/11/2023
1.1.0 252 8/3/2023
1.0.0 168 7/31/2023