Skip to content

ZackBorton/Basic.Template.API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub licenseBuild Status

Basic.Template.API

Basic bootstrapped project for creating a new dotnet app using the dotnet new command

Clone the project locally

git clone https://github.com/ZackBorton/Basic.Template.API.git

Ensure you have the correct version of dotnet installed

Should be 3.0.1 or higher if its not install the latest stable version

dotnet --version

HTTPS

This app requires running https locally using a self signed cert. You can do so by running the following command dotnet dev-certs https --trust

If this is a local project use the directory containing the .template.config folder to install the project

dotnet new -i FullPathToConfig

Example dotnet new -i "PathToYourProject/Basic.Template.API/Basic.Template.API/content/"

You should now be able to view the new template by running

dotnet new

  • Templates: API with swagger
  • Short Name: Basic.API.Template

Finally create a new project using the dotnet new syntax

dotnet new Basic.API.Template

To note you can specifiy a new name for the project being created

dotnet new Basic.API.Template --name NewAppName

Uninstalling

You need to supply the full path to the content directory specified during install step listed above

Issues uninstalling

If you have issues uninstalling try running the below command

dotnet new --debug:reinit

Project

Includes swagger enabled by default @ http://RootURL/swagger/v1/swagger.json

Includes assembly scanning for dependency injection via autofac

Includes enforced HSTS security

Includes API versions example

Includes renovator to autobump nuget dependencies

About

Basic bootstrapped project for creating a new dotnet app using the dotnet new command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages