serverless-loopback icon indicating copy to clipboard operation
serverless-loopback copied to clipboard

Provide a migration guide to lb4

Open xdreamcode opened this issue 6 years ago • 5 comments

Provide a migration guide to lb4

xdreamcode avatar Jul 03 '19 17:07 xdreamcode

@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!

marcelobern avatar Jul 06 '19 17:07 marcelobern

Can you outline the steps required to upgrade to lb4?

elloGuy69 avatar Oct 12 '19 17:10 elloGuy69

@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.

marcelobern avatar Oct 13 '19 01:10 marcelobern

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

elloGuy69 avatar Oct 13 '19 01:10 elloGuy69

@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!

marcelobern avatar Jun 17 '20 05:06 marcelobern