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
34.9k stars 9.86k forks source link

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

Open DamianEdwards opened 9 months ago

DamianEdwards commented 9 months 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 9 months ago

cc @adityamandaleeka @samsp-msft @Tratcher

Tratcher commented 9 months ago

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

DamianEdwards commented 9 months ago

Yeah, I think it's worth revisiting 😃

samsp-msft commented 9 months ago

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

DamianEdwards commented 9 months 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 9 months 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 9 months ago

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