{"id":25523636,"url":"https://github.com/sswconsulting/ssw.verticalslicearchitecture","last_synced_at":"2025-04-10T02:23:24.981Z","repository":{"id":195941705,"uuid":"693978532","full_name":"SSWConsulting/SSW.VerticalSliceArchitecture","owner":"SSWConsulting","description":"An enterprise ready solution template for Vertical Slice Architecture. This template is just one way to apply the Vertical Slice Architecture.","archived":false,"fork":false,"pushed_at":"2024-05-16T23:55:07.000Z","size":244,"stargazers_count":190,"open_issues_count":19,"forks_count":19,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-05-17T00:42:20.452Z","etag":null,"topics":["asp-net-core","dotnet","ef-core","minimal-endpoints","software-architecture","vertical-slice-architecture"],"latest_commit_sha":null,"homepage":"https://verticalslicearchitecture.com/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SSWConsulting.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-20T05:01:43.000Z","updated_at":"2024-07-13T02:34:19.303Z","dependencies_parsed_at":"2023-09-20T07:59:13.298Z","dependency_job_id":"300a9118-8ac9-4a6a-89f5-493769c34986","html_url":"https://github.com/SSWConsulting/SSW.VerticalSliceArchitecture","commit_stats":null,"previous_names":["hona/verticalslicearchitecture","sswconsulting/verticalslicearchitecture"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSWConsulting%2FSSW.VerticalSliceArchitecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSWConsulting%2FSSW.VerticalSliceArchitecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSWConsulting%2FSSW.VerticalSliceArchitecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSWConsulting%2FSSW.VerticalSliceArchitecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SSWConsulting","download_url":"https://codeload.github.com/SSWConsulting/SSW.VerticalSliceArchitecture/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143344,"owners_count":21054762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net-core","dotnet","ef-core","minimal-endpoints","software-architecture","vertical-slice-architecture"],"created_at":"2025-02-19T19:19:54.277Z","updated_at":"2025-04-10T02:23:24.947Z","avatar_url":"https://github.com/SSWConsulting.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![SSW Banner](https://raw.githubusercontent.com/SSWConsulting/SSW.Rules.Content/main/_docs/images/ssw-banner.png)](https://github.com/SSWConsulting/VerticalSliceArchitecture)\n\n# 🤔 What is it?\n\nAn enterprise ready solution template for Vertical Slice Architecture.\nThis template is just one way to apply the Vertical Slice Architecture.\n\nRead more on [SSW Rules to Better Vertical Slice Architecture](https://www.ssw.com.au/rules/rules-to-better-vertical-slice-architecture/)\n\n## Learn\n\n[![](https://img.shields.io/badge/watch%20the%20video-FF0000?style=for-the-badge\u0026logo=youtube)](https://www.youtube.com/watch?v=T-EwN9UqRwE) [![](https://img.shields.io/badge/Read%20the%20Blog-06D6A0?style=for-the-badge\u0026logo=rss\u0026logoColor=fff)](http://lukeparker.dev/blog/vertical-slice-architecture-quick-start)\n\n[![Vertical Slice Architecture: How Does it Compare to Clean Architecture | .NET Conf 2023](https://i3.ytimg.com/vi/T-EwN9UqRwE/maxresdefault.jpg)\n](https://www.youtube.com/watch?v=T-EwN9UqRwE)\n\n# 🎉 Getting Started\n\nTo install the template from NuGet.org run the following command:\n\n```bash\ndotnet new install SSW.VerticalSliceArchitecture.Template\n```\n\nThen create a new solution:\n\n```bash\nmkdir Sprout\ncd Sprout\n\ndotnet new ssw-vsa\n```\n\nFinally, to update the template to the latest version run:\n\n```bash\ndotnet new update\n```\n\n# 📚 Faster Development\n\nTo speed up development there is a `dotnet new` template to create a full Vertical Slice.\n\n```bash\ndotnet new ssw-vsa-slice -f Student\n```\n`-f` or `--feature` where the feature name is the **singular** name of the feature.\n\nOf course, there are always exceptions where appending an 's' is not enough. For example, `Person` becomes `People` and `Child` becomes `Children`.\n\nFor this, use the optional parameter:\n\n```bash\ndotnet new ssw-vsa-slice -f Person -fp People\n```\n\noptional: `-fp` or `--feature-plural` where the feature name is the **plural** name of the feature.\n\nThis creates everything you need to get started with a new feature.\n\n- Full CRUD endpoints\n- CQRS \n    - missing `EventHandlers/` folder as this is more uncommon\n    - provides `Events/` as a folder to demonstrate how to trigger side effects\n- Basic REPR pattern (i.e., Request, an Endpoint, and a Response)\n- Adds a new Entity\n- Basic DDD pattern - the 'Complete' method on the entity shows adding Domain events and using `Result` objects instead of exceptions for validation\n- Adds a DbSet to the DbContext\n- Adds EF Core Entity Type Configuration\n- Adds a Repository\n\nWhile there is a small amount of code to remove, it is better to push you towards the pit of success, than allow inconsistency.\n\n# 📝 Architecture\n\n```mermaid\ngraph TD;\n    subgraph ASP.NET Core Web App\n        subgraph Slices\n            A[Feature A]\n            B[Feature B]\n        end\n        Slices --\u003e |depends on| Common\n        Host --\u003e |depends on| Common\n        Host --\u003e |depends on| Slices\n        ASPNETCore[ASP.NET Core] --\u003e |uses| Host\n    end\n\n    Common[Common]\n```\n\n# ✨ Features\n\n- C# 12\n- .NET 8\n- ASP.NET Core\n- Minimal APIs\n- EF Core\n- Swagger UI\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsswconsulting%2Fssw.verticalslicearchitecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsswconsulting%2Fssw.verticalslicearchitecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsswconsulting%2Fssw.verticalslicearchitecture/lists"}