This is a An
asp.net core template
based onVertical Slice Architecture
, CQRS, Minimal APIs, API Versioning and Swagger. Create a new project based on this template by clicking the above Use this template button or by installing and running the associated NuGet package (see Getting Started for full details).
- This application uses
Https
for hosting apis, to setup a valid certificate on your machine, you can create a Self-Signed Certificate, see more about enforce certificate here. - Install git - https://git-scm.com/downloads.
- Install .NET Core 7.0 - https://dotnet.microsoft.com/download/dotnet/7.0.
- Install Visual Studio, Rider or VSCode.
- Run
dotnet new install Vertical.Slice.Template
to install the project templates. - Now with running
dotnet new --list
, we should seeVertical.Slice.Template
in the template list. - Create a folder for your solution and cd into it (the template will use it as project name)
- Run
dotnet new vsa
for short name ordotnet new Vertical.Slice.Template -n <YourProjectName>
to create a new project template. - Open .sln solution, make sure that's compiling.
- Navigate to
src/App/<YourProjectName>.Api
and rundotnet run
to launch the back end (ASP.NET Core Web API) - Open web browser https://localhost:5158/swagger Swagger UI
For install package locally you can use this command in the root of your cloned responsitory:
dotnet new install .