dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.55k stars 10.05k forks source link

Create an API Gateway/Proxy project template that uses YARP #51353

Open DamianEdwards opened 1 year ago

DamianEdwards commented 1 year ago

We should consider adding a project template that makes it easy to get started building an API Gateway / Reverse Proxy using YARP.

davidfowl commented 1 year ago

cc @adityamandaleeka @samsp-msft @Tratcher

Tratcher commented 1 year ago

https://github.com/microsoft/reverse-proxy/issues/77

DamianEdwards commented 1 year ago

Yeah, I think it's worth revisiting 😃

samsp-msft commented 1 year ago

As a nuget package that can be installed? As part of the default .NET/VS templates?

DamianEdwards commented 1 year ago

As a nuget package that can be installed? As part of the default .NET/VS templates?

As part of the default I think.

Tratcher commented 1 year ago

And more interestingly, what do you put in it? YARP doesn't need much to get started.

https://github.com/microsoft/reverse-proxy/blob/main/samples/ReverseProxy.Minimal.Sample/Program.cs

DamianEdwards commented 1 year ago

That sample looks good, and even includes config-loading which I was going to ask about.

captainsafia commented 3 months ago

@samsp-msft @benjaminpetit Came across this while working through the area-minimal triage backlog. Moving this over to your corner to figure out whether this should be pursued moving forward.