Introduction to LoopBack Presentation

Introduction to LoopBack Presentation

This post is more than 2 years old.

Earlier today I gave a presentation on LoopBack and StrongLoop. I've embedded the recording below:

I'm not including a link to the slides/demos because they were extremely simple, and you can see the slides in the presentation itself, but obviously if you want it, just ask. During the presentation, there were a few questions that came up that I wanted to address in the blog post.

  • What are the minimum requirements to install LoopBack/StrongLoop?

I'd check the Installing StrongLoop documentation for that. Also the specific doc for Windows and OSX.

In terms of the supported version of Node, both docs say this: "For best results, use the latest LTS (long-term support) release of Node.js."

  • How do you upgrade from earlier versions of LoopBack?

Check the docs: Updating to the latest version

  • Debugging - basically - how?

See my blog entry here: A quick look at debugging Node.js with StrongLoop and Visual Studio Code

  • Relationships - basically - how?

Start with the docs here: Creating model relations. As I mentioned in the presentation, I'm working on a blog post about the topic, but you can find some sample code for it here: https://github.com/cfjedimaster/StrongLoopDemos/tree/master/ormdemo

  • Updates for Angular 2

I was asked if the AngularJS SDK would be updated for Angular 2. Right now - there are no official plans for an update. As I said multiple times in the presentation, you can absolutely use Angular 2, Ionic, jQuery Mobile, Vanilla JS, etc, with LoopBack with no problem at all. This SDK is just an optional utility for working with LoopBack and Angular.

That's it - I hope you enjoy the presentation and let me know what you think in the comments below.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Ryan posted on 4/14/2016 at 3:00 PM

How about nested APIs in Loopback? Ex: I use year as a root for many models. /2016/foobars

Comment 2 by Ryan posted on 4/14/2016 at 3:00 PM

Have you played with ActiveDirectory integration with Loopback? Specifically, I'll then need to use EmployeeID from AD.

Comment 3 (In reply to #1) by Raymond Camden posted on 4/14/2016 at 3:03 PM

Are you talking about versioning? Or a way to say, "I have foobars, but I want foobars only from year X"?

Comment 4 (In reply to #3) by Ryan posted on 4/14/2016 at 3:16 PM

Humm... I think "I have foobars, but I want foobars only from year X". Basically everything (except for Years themselves) are attached to a Year.

My front-end apps let users select a Year, which will change the Year requested during API calls.

Comment 5 (In reply to #4) by Raymond Camden posted on 4/14/2016 at 3:20 PM

So filtering by year should be possible (should). Out of the box, you get a full featured filtering language. My only concern here is that I'm not sure about the date part. So given that you are probably using full dates, I'd have to check to see how you would filter by JUST the year.

Of course, the URL would not be pretty. You would need to set up /YYYY/X in Express yourself.

You could do /api/X/YYYY such that you have a handler to catch dynamic routes. That *should* be possible too.

Comment 6 (In reply to #5) by Ryan posted on 4/14/2016 at 3:24 PM

There is a Year property on each model, so actual filtering should be easy. I'm not going by a "created date" or anything, just a 4 digit year.

Comment 7 (In reply to #6) by Raymond Camden posted on 4/14/2016 at 3:26 PM

ah, then definitely easy :) just check the docs.

Comment 8 by Ahmer posted on 1/7/2017 at 9:47 PM

How can we generate and run angularjs2 with loopback

Comment 9 (In reply to #8) by Raymond Camden posted on 1/7/2017 at 10:31 PM

LoopBack is about creating APIs - it isn't about creating client-side code. While you can easily use Angular with LoopBack, the LoopBack tool itself doesn't create Angular code for you.