Code Monkey home page Code Monkey logo

netcoretooltemplates's People

Contributors

ccheetham avatar dtillman avatar hananiel avatar korser1 avatar shawkyz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

korser1 shawkyz

netcoretooltemplates's Issues

actuator dep should generate endpoint mapping wiring

If actuator dependency is specified, the following snippets should be generated in Startup::Configure:

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            ...
            app.UseEndpoints(endpoints =>
            {
                ...
                endpoints.MapAllActuators();
            });
            ...
            HealthStartupFilter.InitializeAvailability(app.ApplicationServices)
            ...
        }

Add option for .NET framework

Option should behave similarly to that in other templates.

Sample help output from dotnet new webapi -h:

 -f|--framework             The target framework for the project.
                                 net5.0           - Target net5.0
                                 netcoreapp3.1    - Target netcoreapp3.1
                             Default: net5.0

Adding UseCloudHosting could specify a random port

UseCloudHosting() allows passing in a port to listen on - if Initializr were to randomly assign a port at generation time, multiple projects created with initializr would be unlikely to attempt to bind to the same port

Test building of projects generated from templates

Implement a test matrix with dimensions:

  • Steeltoe version
  • .NET target framework
  • option

For example, a point in the matrix would test:

$ dotnet new stwebapi --framework netcoreapp3.1 --steeltoe 3.0.2 --dynamic-logging

To pass, a project should succeed in:

  • dotnet restore
  • dotnet build /p:TreatWarningsAsErrors=True

create stwebapi template

template can be used running: dotnet new stwebapi.

Initial template will have no options and only generate a generic project. Subsequent feature requests will define template options.

As part of implementation, create initial unit test framework.

Eureka dependency does not add Eureka nuget ref

The Eureka dependency should add a reference to Steeltoe.Discovery.Eureka, optionally in place of ClientCore as the code currently in the template comes from ClientBase which is a dependency of the Eureka package.

Adding RandomValue Should Add to Config Builder

AddRandomValueSource should be called in program.cs when RandomValue has been added

Maybe it would be simpler if all config providers were added inside ConfigureAppConfiguration since there isn't a HostBuilder extension for Random? just an idea, may or may not be a great one

Add support for Connectors on Cloud Foundry

When used in a Cloud Foundry environment, Connectors also need

  • Cloud Foundry Configuration (nuget ref and .AddCloudFoundryConfiguration())
  • Cloud Foundry Connector nuget ref Steeltoe.Connector.CloudFoundry

Add support for project description

The description option should configure the content of the the Description tag in the generated .csproj.

Sample:

$ dotnew new steeltoe-webapi --description "My Project"

Should result in something like:

Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    ...
    <Description>My Project</Description>
...

Initializer has incorrect "launchUrl" specified in launchsettings.json

Issue description

When launching a project from the initializer, it opens a browser at the location "/api/values"

Expected result

When launching a project from the initializer, it opens a browser at the location "/weatherforecast"

Actual result

When launching a project from the initializer, it opens a browser at the location "/api/values"

Steps to replicate

Create a project in the initializer using Steeltoe 3.1.0 and .NET 3.1
Launch the application and the browser will open at "localhost:PORT/api/values" instead of "localhost:PORT/weatherforecast"

Add support for Azure Spring Cloud

Sample invocation

$ dotnew new stwebapi --azure-support

Spring example:

https://start.spring.io/#!type=maven-project&language=java&platformVersion=2.3.10.RELEASE&packaging=jar&jvmVersion=11&groupId=com.example&artifactId=demo&name=demo&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.demo&dependencies=azure-support

initialize repo

Create basic doc:

  • README
  • LICENSE

Create issue templates:

  • bug
  • feature

Add a "description" option

The description option should configure the content of the the Description tag in the generated .csproj.

Sample:

$ dotnew new steeltoe-webapi --description "My Project"

Should result in something like:

Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    ...
    <Description>My Project</Description>
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.