botbits / serverless-loopback

A sample loopback application deployed to AWS Lambda using serverless.
MIT License
35 stars 12 forks source link

Provide a migration guide to lb4 #7

Open xdreamcode opened 5 years ago

xdreamcode commented 5 years ago

Provide a migration guide to lb4

marcelobern commented 5 years ago

@xdreamcode can you please provide a bit more detail on what you mean here?

In principle there is no dependency of the loopback version in use.

Did you mean to have a sample with loopback 4 in the README.MD?

Thanks in advance and have a great weekend!

elloGuy69 commented 5 years ago

Can you outline the steps required to upgrade to lb4?

marcelobern commented 5 years ago

@elloGuy69 due to its current limitations, I have not been using lb4, so I am not in position to offer much help here.

I recently reviewed lb4 and it is not based on express anymore, so the basic approach used in this repo to wrap lb3 for lambda is unlikely to work for lb4 as is.

If you want to tinker with it out, I suggest looking into lambda-wrapper.js to check if a lb4 app would even load (I find it hard to believe it would).

In the end it would take digging through the lb4 source code to figure out how to hock it to an equivalent lambda-wrapper.

elloGuy69 commented 5 years ago

Doesn't look like it's on their roadmap anytime soon :( https://github.com/strongloop/loopback-next/issues/1465

marcelobern commented 4 years ago

@elloGuy69 while I cannot define a roadmap to lb4, I can tell you that #15 includes an example on how to make it work for lb4 ;-)

In case you are still looking for it, I would love to hear any feedback you might have!