SC.Microservice.Template
3.0.0
dotnet new install SC.Microservice.Template::3.0.0
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
-
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.