choonkeat / elm-webapp

A setup for writing http based, client-server app in elm, inspired wholly by lamdera.com
https://package.elm-lang.org/packages/choonkeat/elm-webapp/latest
MIT License
57 stars 7 forks source link

Serverless Framework integration #10

Open MattiaVerticchio opened 1 year ago

MattiaVerticchio commented 1 year ago

Hi @choonkeat and thanks for developing elm-webapp, it’s awesome to see something like Lamdera open-sourced!

I’d like to contribute with a suggestion about the deployment process. It could be interesting to support the Serverless Framework for deployment since it already supports different cloud providers:

and supports offline development. It would also ease elm-webapp development by delegating the boilerplate code to an already established framework.

It already exists the-sett/elm-serverless that uses this tool, but I don’t think it’s actively maintained anymore and it doesn’t offer an end-to-end experience as elm-webapp does.

I hope this is helpful!

choonkeat commented 1 year ago

supporting deployment targets will be great but I'm very concern about dependencies upgrade rat race.

perhaps it can be done in separate repos, or various instructions.md files? wdyt?

MattiaVerticchio commented 1 year ago

Yes, I agree with you about dependencies management issues.

I think the best way would be to have a simple index.js and then instructions about deployment that could fit different use cases.

Could that be feasible?

heikogoll commented 1 year ago

... since it already supports different cloud providers: [...]

  • Cloudflare Workers

[...]

Hi @MattiaVerticchio, how is it possible to deploy it to Cloudflare Workers? I'm very interested in doing that.

And @choonkeat: Thanks for the development of elm-webapp from my side, too! Fantastic and very helpful!