Hona.VerticalSliceArchitecture.Template 0.8.0 (original) (raw)

VerticalSliceArchitecture Template Banner

๐Ÿค” What is it?

A small but opinionated Vertical Slice Architecture solution template for .NET 8

Learn

alternate text is missing from this package README image alternate text is missing from this package README image

๐ŸŽ‰ Getting Started

To install the template from NuGet.org run the following command:

dotnet new install Hona.VerticalSliceArchitecture.Template

Then create a new solution:

mkdir Sprout
cd Sprout

dotnet new hona-vsa

Finally, to update the template to the latest version run:

dotnet new update

๐Ÿ“š Faster Development

To speed up development there is a dotnet new template to create a full Vertical Slice.

dotnet new hona-vsa-slice -f Student

-f or --feature where the feature name is the singular name of the feature.

Of course, there are always exceptions where appending an 's' is not enough. For example, Person becomes People and Child becomes Children.

For this, use the optional parameter:

dotnet new hona-vsa-slice -f Person -fp People

optional: -fp or --feature-plural where the feature name is the plural name of the feature.

This creates everything you need to get started with a new feature.

While there is a small amount of code to remove, it is better to push you towards the pit of success, than allow inconsistency.

๐Ÿ“ Architecture

graph TD;
    subgraph ASP.NET Core Web App
        subgraph Slices
            A[Feature A]
            B[Feature B]
        end
        Slices --> |depends on| Common
        Host --> |depends on| Common
        Host --> |depends on| Slices
        ASPNETCore[ASP.NET Core] --> |uses| Host
    end

    Common[Common]

โœจ Features

This package has no dependencies.

๐Ÿงช Add meta test (#47)
โ™ป๏ธ Make the Domain more intentional (#49)
โ™ป๏ธ Use Immediate.Handlers instead of MediatR (#50)
๐Ÿ‘ท๐Ÿป Add dependabot for NuGet + GitHub actions (#51)
๐Ÿ‘ท๐Ÿป Exclude test result upload from dependabot (#61)
Bump actions/checkout from 2 to 4 (#52)
Bump actions/cache from 3 to 4 (#54)
Bump actions/setup-dotnet from 3 to 4 (#53)
Bump nuget/setup-nuget from 1 to 2 (#55)
Bump FluentAssertions from 7.0.0-alpha.2 to 7.0.0-alpha.3 (#57)
Bump Microsoft.AspNetCore.OpenApi from 8.0.0 to 8.0.3 (#60)
Bump coverlet.collector from 6.0.0 to 6.0.2 (#56)
Bump xunit from 2.6.3 to 2.7.0 (#59)
Bump Microsoft.NET.Test.Sdk from 17.9.0-preview-23503-02 to 17.9.0 (#58)
โ™ป๏ธ More cohesion between endpoint & CQRS object (#63)
๐Ÿšง Add TODOs for source gens (#64)