https://github.com/fastendpoints/template-pack
"dotnet new" project & item scaffolding templates.
https://github.com/fastendpoints/template-pack
Last synced: 10 months ago
JSON representation
"dotnet new" project & item scaffolding templates.
- Host: GitHub
- URL: https://github.com/fastendpoints/template-pack
- Owner: FastEndpoints
- License: mit
- Created: 2022-08-04T06:24:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-03T09:49:04.000Z (over 1 year ago)
- Last Synced: 2024-11-03T09:25:36.400Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 298 KB
- Stars: 22
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# FastEndpoints.TemplatePack
Template pack for FastEndpoints to quickly scaffold feature file sets and starter projects using `dotnet new` command line tool.
### Report an Issue
[Issues are tracked in the main FastEndpoints repo](https://github.com/FastEndpoints/FastEndpoints/issues). Please open an issue there.
## Install
```cs
dotnet new install FastEndpoints.TemplatePack
```
## Scaffold Minimalist Starter Project
```cs
dotnet new feproj -n MyAwesomeProject
```
## Scaffold Starter Project With Integrated Testing
```cs
dotnet new feintproj -n MyAwesomeProject
```
## Scaffold xUnit Test Project
```cs
dotnet new fetest
```
## Scaffold Feature File Set
```
dotnet new feat -n MyProject.Comments.Create -m post -r api/comments -o Features/Comments/Create
```
### Available Options
**NOTE:** The `-n` and `-o` options in the above command are `dotnet new` options for "name" and "output", respectively.
```
> dotnet new feat --help
FastEndpoints Feature Fileset (C#)
Options:
-t|--attributes Whether to use attributes for endpoint configuration
bool - Optional
Default: false
-p|--mapper Whether to use a mapper
bool - Optional
Default: true
-v|--validator Whether to use a validator
bool - Optional
Default: true
-m|--method Endpoint HTTP method
GET
POST
PUT
DELETE
PATCH
Default: GET
-r|--route Endpoint path
string - Optional
Default: api/route/here
```