SC.Microservice.Template
1.3.0
See the version list below for details.
dotnet new install SC.Microservice.Template::1.3.0
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
-
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.