Genocs.CleanArchitectureTemplate

Install the package: $ dotnet new -i Genocs.CleanArchitectureTemplate::1.8.3 The full clean project: $ dotnet new cleanarchitecture


Keywords
aggregate, architecture, boilerplate, clean-architecture, clean-code, ddd, ddd-architecture, design-patterns, docker, domain-driven-design, dotnet, dotnetcore, dotnet-core, dotnet-cli, dotnet-new, dotnet-template, evolutionary-architecture, generator, hexagonal-architecture, layered, masstransit, microservice, microservices, nservicebus, onion, rabbitmq, service, bus, solid, solid-principles, templating, tdd, webapi, template
License
MIT
Install
Install-Package Genocs.CleanArchitectureTemplate -Version 2.1.0

Documentation

Clean Architecture Template .NET Microservice Template by Genocs

Build Status NuGet Gitter


This is an Application Template built to help you create LOB applications. It follows the Clean Architecture Principles and built on Domain-Driven-Design. This tool is useful to increases productivity on developing your next microservices. The template allows you to use different storage and enterprise service bus.

Storage:

  • InMemoryDB (for development purpose)
  • SqlServer
  • MongoDB

Enterprise Service libraries:

  • Particular NServiceBus
  • MassTransit
  • Rebus

How to create a project

Create, build, test and run:

dotnet new -i Genocs.CleanArchitectureTemplate::{version]
dotnet new cleanarchitecture -n {MyCompany.MyProject}
cd {MyCompany.MyProject}
dotnet build src\{MyCompany.MyProject}.WebApi
dotnet build src\{MyCompany.MyProject}.BusWorker

dotnet test
cd src\{MyCompany.MyProject}.WebApi
dotnet run src\{MyCompany.MyProject}.WebApi

How to build the package

To build the package run the following commands:

Official Link

cd .\src
nuget pack
dotnet new -u Genocs.CleanArchitectureTemplate
dotnet new -i Genocs.CleanArchitectureTemplate.2.0.{version}.nupkg
dotnet new cleanarchitecture --help
dotnet new cleanarchitecture --name {MyCompany.MyProject} -d mongodb -sb particular

Sample application

Run dotnet new -i Genocs.CleanArchitecture then try the following commands.

# Complete suite of use cases.
dotnet new cleanarchitecture --use-cases full

# Register account and get customer details.
dotnet new cleanarchitecture --use-cases basic

# Read only use cases
dotnet new cleanarchitecture --use-cases readonly

Miscellaneous

How to get the list of installed templates

dotnet new -u

dotnet --list

Before push on Github

The templete is built using Travis CI

The CI is triggered on master branch