Skip to content

Commit

Permalink
Updated template
Browse files Browse the repository at this point in the history
  • Loading branch information
Srihari Sridharan committed Mar 1, 2022
1 parent 47d8d31 commit 7e20ec3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
16 changes: 12 additions & 4 deletions .template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json.schemastore.org/template",
"author": "David Pereira",
"classifications": ["Web", "API", "Microservices"],
"name": ".NET 5 Template with CQRS, ES and DDD",
"name": ".NET 6 Template with CQRS, ES and DDD",
"identity": "dotnet_template_onion",
"shortName": "dotnet_template_onion",
"tags": {
Expand All @@ -12,7 +12,15 @@
{
"modifiers": [
{
"exclude": [ ".vs/**", ".git/**", "README.md", "bin/**", "obj/**", "images/logo.jpg", "images/installation.jpg" ]
"exclude": [
".vs/**",
".git/**",
"README.md",
"bin/**",
"obj/**",
"images/logo.jpg",
"images/installation.jpg"
]
}
]
}
Expand All @@ -27,7 +35,7 @@
},
"description": {
"type": "parameter",
"defaultValue": ".NET 5 Template with CQRS, ES and DDD",
"defaultValue": ".NET 6 Template with CQRS, ES and DDD",
"replaces": "__PROJECT_DESCRIPTION__"
},
"namespace": {
Expand All @@ -41,4 +49,4 @@
"replaces": "99.99.99"
}
}
}
}
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
A .NET/.NET Core template to use Onion Architecture and DDD (Domain Driven Design) with CQRS and ES with a simple example on how to use all this architecture together from the Controller until the Repository class using Domain objects and different patterns.

### Documentation

You can find information about this template in:
* [Main Architecture](docs/ARCHITECTURE.md)
* [Hexagonal Architecture](docs/HEXAGONAL.md)
* [DDD](docs/DDD.md)
* [CQRS AND ES](docs/CQRS-ES.md)
* [SOLID](docs/SOLID.md)

- [Main Architecture](docs/ARCHITECTURE.md)
- [Hexagonal Architecture](docs/HEXAGONAL.md)
- [DDD](docs/DDD.md)
- [CQRS AND ES](docs/CQRS-ES.md)
- [SOLID](docs/SOLID.md)

### Prerequisites

Expand All @@ -25,7 +26,6 @@ https://dotnet.microsoft.com/download/dotnet/6.0

This is just the version used by the template, if you need to use a newer or older one, you can do it manually after.


### Usage

1. Clone this repository
Expand All @@ -35,7 +35,8 @@ This is just the version used by the template, if you need to use a newer or old
dotnet new -i {{Path_where_you_cloned_the_repository}}
```

* Example:
- Example:

```
dotnet new -i C:\GitLocal\dotnet-template-onion
```
Expand All @@ -46,7 +47,8 @@ dotnet new -i C:\GitLocal\dotnet-template-onion
dotnet new -l
```

* There should now be a new template **dotnet_template_onion**
- There should now be a new template **dotnet_template_onion**

```
Templates Short Name Language Tags
----------------------------------------------------------------------------------------------------------
Expand All @@ -59,12 +61,13 @@ Templates Short Name La
dotnet new dotnet_template_onion -n {{Namespace_of_your_project}} -o <outputFolder>
```

* This will create the folder containing a solution and project folder.
![](images/installation.jpg)
- This will create the folder containing a solution and project folder.
![](images/installation.jpg)

And you are ready to go, you can use Visual Studio, Visual Studio Code or any other IDE to proceed with your coding.

### Structure of the template

```
C:.
│ .gitignore
Expand Down Expand Up @@ -176,4 +179,3 @@ C:.
```

0 comments on commit 7e20ec3

Please sign in to comment.