SC.Microservice.Template 3.0.0

dotnet new install SC.Microservice.Template::3.0.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 8. 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 8 SDK.
  • Install RabbitMQ latest.

Install the dotnet new template:

dotnet new install SC.Microservice.Template::3.0.0

Create new project:

dotnet new sc-micro-sln -n MyProjectName

Technologies:

  • ASP.NET 8
  • Entity Framework Core 8
  • 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

  • net8.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,565 12/14/2023
2.0.0 208 9/8/2023
1.3.1 154 9/5/2023
1.3.0 176 8/31/2023
1.2.0 217 8/29/2023
1.1.1 235 8/11/2023
1.1.0 211 8/3/2023
1.0.0 143 7/31/2023