Skip to content

Repository files navigation

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. Please open an issue there.

Install

dotnetnew install FastEndpoints.TemplatePack

Scaffold Minimalist Starter Project

dotnetnewfeproj-n MyAwesomeProject

Scaffold Minimalist Native AOT Starter Project

dotnetnewfeaot-n MyAwesomeProject

Scaffold Starter Project With Integrated Testing

dotnetnewfeintproj-n MyAwesomeProject

Scaffold xUnit Test Project

dotnetnew 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

About

"dotnet new" project & item scaffolding templates.

Resources

Stars

36 stars

Watchers

3 watching

Forks

Releases

Used by

Contributors

Languages