hayer / faas-fsharp-template

F# template for OpenFaaS-cli.
MIT License
9 stars 8 forks source link

Suggestion to re-use ASPNET template #5

Open goncalo-oliveira opened 3 years ago

goncalo-oliveira commented 3 years ago

Hi,

I encountered your project and noticed it's based on a simple, older csharp template. I've recently written an ASPNET template, using ASPNET 5 that I think it offers better control and something more comfortable to those who are used to write MVC or API applications. You get access to the HttpRequest and you respond an IActionResult. You can also use attributes to restrict execution to certain HTTP request methods, use dependency injection, configuration, built-in secrets and other stuff.

I imagine it would be very easy to write an aspnet-fsharp version of the template, using the same tools, with minimal effort (just writing the function template). Let me know if you would be interested or have any questions.

Cheers

goncalo-oliveira commented 3 years ago

Actually I had a request from a friend that wanted to use F# with the template, so I ended up adding an F# template. Feel free to have a look and comment.

FaaS ASPNET Template

Cheers