- In the API directory you should build the container
docker build --no-cache .
- Then to run the app running on port 5005 run this command
docker compose up
- Install AWS cli and install AWS cert bundles
- Add localstack logic
Basic bootstrapped project for creating a new dotnet app using the dotnet new command
git clone https://github.com/ZackBorton/Basic.Template.API.git
Should be 3.0.1 or higher if its not install the latest stable version
dotnet --version
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/"
dotnet new
- Templates: API with swagger
- Short Name: Basic.API.Template
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
You need to supply the full path to the content directory specified during install step listed above
If you have issues uninstalling try running the below command
dotnet new --debug:reinit
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 renovate to auto bump project dependencies