1

I am trying to develop server-side using loopback with database connector. However, I am quite confused with installing loopback on AWS.

reference for installing loopback on AWS

This website mentioned that only loopback of version 2.0 could be installed. Yet, when I browse through loopback website, https://strongloop.com/strongblog/how-to-setup-push-notifications-private-mbaas-amazon-aws-part-1/, this website shows that it seems possible to install loopback of version higher than 2.0 on AWS. Since there are some features only available after version 2.1x, it would be nice if AWS allows installation of loopback of version higher than 2.0. Could anyone help me solve the problem? BTW, I am only using free tier of AWS and do not intend to pay at this moment.

Ken Kwok
  • 388
  • 3
  • 19
  • What about AWS OpsWorks? In that case you don't need StrongLoop AMI, and just install app as any other Node app. Guide: http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-node.html Just make sure you follow additional steps in: http://stackoverflow.com/a/14995394/1808209 – Alex V Jun 30 '15 at 06:43
  • Thank you for the information but I planned to use loopback for its push. That's why I need to install loopback. – Ken Kwok Jun 30 '15 at 07:05
  • 1
    But it will still be a loopback application, if you have loopback modules properly defined and used. It's all about how you run it: instead of using `slc ...` OpsWorks will run it for you using `node ...` – Alex V Jun 30 '15 at 07:08
  • It sounds interesting. I'll try it later. Thanks. – Ken Kwok Jun 30 '15 at 07:21

2 Answers2

2

Even if you install the image that comes preconfigured with Loopback 2, you should be able to upgrade to newer versions using npm as you normally would (sudo npm install -g strongloop and the like). Imagine if there's a security issue that you'd need that wasn't backported for whatever reason...Loopback is just files and the image is just linux. You have free reign to update/upgrade whatever you need.

My recommendation would be to start out with a minimal Ubuntu image and install everything with npm. You'll understand the ecosystem better and won't be surprised by something you don't remember installing specifically.

One caveat that a bunch of preconfigured images have is they are only available on older instance types (m1 for instance--pun not intended ;)). They are slower and more expensive than newer instances.

notbrain
  • 3,366
  • 2
  • 32
  • 42
1

You can probably install whatever you want.
The difference is that if you want a machine image that contains everything already there and don't want to build it yourself you're stuck to 2.0 here (https://aws.amazon.com/marketplace/pp/B00PG9I0M0)
What I would do is use the provided AMI and after that upgrade loopback manually.

Mircea
  • 10,216
  • 2
  • 30
  • 46