Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Hona committed Dec 22, 2023
1 parent 4b128c2 commit ff69a7a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,37 @@ 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.

```bash
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:

```bash
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.

- Full CRUD endpoints
- CQRS
- missing `EventHandlers/` folder as this is more uncommon
- provides `Events/` as a folder to demonstrate how to trigger side effects
- Basic REPR pattern (i.e., Request, an Endpoint, and a Response)
- Adds a new Entity
- Adds a DbSet to the DbContext
- Adds EF Core Entity Type Configuration
- Adds a Repository

# ✨ Features

- C# 12
Expand Down

0 comments on commit ff69a7a

Please sign in to comment.