Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔖 Release 8.0.0-preview5.3 #890

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CleanArchitecture.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<metadata>

<id>Clean.Architecture.Solution.Template</id>
<version>8.0.0-preview.5.2</version>
<version>8.0.0-preview.5.3</version>
<title>Clean Architecture Solution Template</title>
<authors>JasonTaylorDev</authors>
<description>Clean Architecture Solution Template for .NET 8.</description>
<summary>
A Clean Architecture Solution Template for creating a Single-Page Application (SPA) with ASP.NET Core.
</summary>
<releaseNotes>
Added item template for creating use cases (commands and queries)
Added support for Web API only.
</releaseNotes>

<projectUrl>https://github.com/JasonTaylorDev/CleanArchitecture</projectUrl>
Expand Down
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,34 @@ The template depends on the latest versions of:

The easiest way to get started is to install the [.NET template](https://www.nuget.org/packages/Clean.Architecture.Solution.Template):
```
dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.5.2
````
dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.5.3
```

Once installed, create a new solution using the template. You can choose to use Angular, React, or create a Web API-only solution. Specify the client framework using the `-c` or `--clientFramework` option, and provide the output directory where your project will be created. Here are some examples:

To create a SPA with Angular:
```
dotnet new ca-sln -c Angular --output YourProjectName
```

Once installed, create a new solution using the template:
To create a SPA with React:
```
dotnet new ca-sln -c <Angular|React> --output <YourProjectName>
dotnet new ca-sln -c React --output YourProjectName
```

The above command creates a SPA with Angular or React on ASP.NET Core. Start the application by navigating to `./src/WebUI` and running:
To create a Web API-only solution:
```
dotnet new ca-sln -c None --output YourProjectName
```

The above commands will create a Single-Page Application (SPA) with Angular or React on top of ASP.NET Core, or a Web API-only solution.

Start the application by navigating to ``./src/WebUI`` (SPA) or ``./src/WebApi`` and running:
```
dotnet run
```

Create use cases (commands or queries) by navigating to `./src/Application`, and running:
Create use cases (commands or queries) by navigating to `./src/Application` and running:
```
dotnet new ca-usecase --feature TodoLists --name CreateTodoList --useCaseType command --returnType int
```
Expand Down