Steeltoe Initializr - .NET Microservices Templates
Перейти к файлу
Jason Konicki 26cebef83f
Create THIRD-PARTY-CONTRIBUTIONS.md
Guidelines for contributing a third party library to start.steeltoe.io
2020-03-06 16:54:12 -05:00
.github/ISSUE_TEMPLATE Update issue templates 2019-09-13 11:26:18 -04:00
SteeltoeVsix
packages
src Fix path to prod app 2020-03-04 15:42:41 -05:00
test 62 separate template engine (#69) 2020-02-05 21:33:02 -05:00
.editorconfig Add support for EditorConfig 2020-01-24 13:45:18 -05:00
.gitignore
Dockerfile
README.md Update README.md 2020-03-06 16:31:42 -05:00
Steeltoe.Initializr.sln 62 separate template engine (#69) 2020-02-05 21:33:02 -05:00
Steeltoe.Initializr.sln.DotSettings
Steeltoe.Initializr.sln.DotSettings.user
THIRD-PARTY-CONTRIBUTIONS.md Create THIRD-PARTY-CONTRIBUTIONS.md 2020-03-06 16:54:12 -05:00
azure-pipelines.yml 62 separate template engine (#69) 2020-02-05 21:33:02 -05:00
global.json update global.json 2019-09-27 18:20:28 -04:00
nuget.config
shared.props 62 separate template engine (#69) 2020-02-05 21:33:02 -05:00
stylecop.json

README.md

Steeltoe Initializr

Master: image Dev: image

Steeltoe Initializr start.steeltoe.io provides an extensible API to generate quickstart projects. It provides a simple web UI to configure the project to generate and endpoints that you can use via plain HTTP.

Steeltoe Initializr also exposes an endpoint that serves its metadata in a well-known format to allow third-party clients to provide the necessary assistance.

How to use

Web

The Web UI allows you to quickly generate a CSharp project with your choice of dependencies

image

Curl

To get help:

curl https://start.steeltoe.io/

          (                                                                                                                                     
          )\ )    )           (     )                                                                                                           
         (()/( ( /(   (    (  )\ ( /(        (                                                                                                  
          /(_)))\()) ))\  ))\((_))\()) (    ))\                                                                                                 
  ____   (_)) (_))/ /((_)/((_)_ (_))/  )\  /((_)__ __ __                                                                                        
 / /\ \  / __|| |_ (_)) (_)) | || |_  ((_)(_))  \ \\ \\ \                                                                                       
< <  > > \__ \|  _|/ -_)/ -_)| ||  _|/ _ \/ -_)  > >> >> >                                                                                      
 \_\/_/  |___/ \__|\___|\___||_| \__|\___/\___| /_//_//_/                                                                                       
                                                                                                                                                
Dependencies:                                                                                                                                   
+----------------------------------------+----------------------------------------------------------------------------------------------------+ 
+ Title                                  + Description                                                                                        + 
+----------------------------------------+----------------------------------------------------------------------------------------------------+ 
+ Actuators                              + Add management endpoints for your application                                                      + 
+ Circuit Breakers                       + Add Circuit Breakers                                                                               + 
+ Cloud Foundry                          + Target CloudFoundry Hosting                                                                        + 
+ Discovery                              + Add Discovery Client                                                                               + 
+ DynamicLogger                          + Add Dynamic Logger                                                                                 + 
... 

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:

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

Developing

Clone and cd into repo and :

    dotnet test 
    cd src 
    dotnet run