This commit is contained in:
Chris Cheetham 2020-08-17 18:01:45 -04:00
Родитель b867380791
Коммит d729592142
2 изменённых файлов: 4 добавлений и 22 удалений

Просмотреть файл

@ -57,10 +57,6 @@ To generate projects:
```
curl https://start.steeltoe.io/starter.zip -d dependencies=actuators,cloudfoundry -o myProject.zip
or
curl https://start.steeltoe.io/starter.zip -d dependencies=actuators,cloudfoundry -d templateShortName=Steeltoe-React -d projectName=MyCompany.MySample -o myProject.zip
```
To get a list of dependencies:
@ -68,22 +64,6 @@ To get a list of dependencies:
curl https://start.steeltoe.io/api/templates/dependencies
```
To get a list of valid templates:
```
curl https://start.steeltoe.io/api/templates/templates
```
### Dotnet templates
Install the Steeloe Templates
```
dotnet new -i steeltoe.templates::2.2.1 --nuget-source https://www.myget.org/F/steeltoedev/api/v3/index.json
```
Generate project
```
dotnet new Steeltoe-WebApi --Actuators --CloudFoundry
```
## Build and Run
Clone and cd into repo and :

Просмотреть файл

@ -18,6 +18,7 @@ using Steeltoe.Initializr.TemplateEngine.Services.Mustache;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Steeltoe.Initializr.TemplateEngine;
namespace Steeltoe.Initializr.WebApp.Controllers
{
@ -67,14 +68,15 @@ Get Versions:
Get project:
curl https://start.steeltoe.io/starter.zip -d dependencies=actuators,cloudfoundry -o myProject.zip
curl https://start.steeltoe.io/starter.zip -d dependencies=actuators,cloudfoundry -d templateShortName=Steeltoe-React -d targetFrameworkVersion=netcoreapp3.1 -d projectName=MyCompany.MySample -o myProject.zip
curl https://start.steeltoe.io/starter.zip -d dependencies=actuators,cloudfoundry -d steeltoeVersion=2.4.4 -d dotNetFramework=netcoreapp3.1 -d projectName=MyCompany.MySample -o myProject.zip
";
}
private string GetDependencies()
{
var result = new StringBuilder();
var dependencies = _templateService.GetDependencies("2.4.4", "netcoreapp3.1", string.Empty);
var dependencies =
_templateService.GetDependencies(Constants.Steeltoe24, Constants.NetCoreApp31, Constants.WebApi);
var fieldWidths = new int[] { 40, 100 };
result.Append("\nDependencies: \n");