My New Lynda Course - Building APIs with LoopBack

My New Lynda Course - Building APIs with LoopBack

I'm happy to announce the release of my latest Lynda.com course, Building APIs with LoopBack. This course introduces you to LoopBack and walks you through building APIs as well as a sample application using those APIs. I cover customizations, security, and more. It's near two hours in length and would be a great way to learn the framework. You do not need to be an expert in Node to use LoopBack, so I definitely recommend it. I hope my readers find this useful, and as always, leave me some feedback about the course either at the site or down in the comments below. (As a reminder, I also have a course on Ionic as well!)

Here is the course outline:

  • Introduction
  • Introducing APIs with LoopBack
  • Models
  • Data Sources
  • Security
  • Customizing LoopBack
  • Filtering and Validating Data
  • Demo LoopBack App
  • Conclusion

Archived Comments

Comment 1 by cschweda posted on 1/15/2018 at 8:30 PM

Question: does Loopback 4 require typescript? I love Loopback 3 -- but Loopback 4 looks like quite a departure.

Comment 2 (In reply to #1) by Raymond Camden posted on 1/15/2018 at 8:35 PM

I am not as well versed in LB4 as I am in LB3. It is so early in dev right now I'm kinda waiting for things to firm up a bit more before I play. Let me ask in our Slack real quick.

Comment 3 (In reply to #2) by Raymond Camden posted on 1/15/2018 at 8:52 PM

Looks like the answer is no - it will not *require* TypeScript. (But it will probably be recommended.)

Comment 4 by Juan Carlos Migliavacca posted on 1/16/2018 at 7:28 PM

Hi Raymond, congratulations for your new course, just saw it. How can i implement JWT (oauth) in loopback? i read the documentation but didnt find any example.

Comment 5 (In reply to #4) by Raymond Camden posted on 1/16/2018 at 8:37 PM

I haven't gotten there yet - but I'll add it to my queue. It's a topic I've needed to cover.

Comment 6 (In reply to #5) by Juan Carlos Migliavacca posted on 1/24/2018 at 12:44 PM

I have annother question. How can i specify an admin and make sure that this user is the only one who can create new users?

Comment 7 (In reply to #6) by Raymond Camden posted on 1/24/2018 at 1:38 PM

ACLs in LoopBack allow you to lock down by role. So if you lock down to role=admin, then a user would have to be in that role in order to do whatever.

Comment 8 by NM posted on 2/23/2018 at 2:24 PM

Absolutely loved the clarity of your LB3 course on Lynda.com, Raymond. Please make a "part 2". However, I do have a question: I am a little unclear on how to actually deploy the Rest APIs to a cloud server. Do I have to use Bluemix or can I use something like Pivotal Cloud Foundry? Further, do I need to purchase API Connect for production or can I still use LB3 stand-alone? Confused. My office is trying to push Apigee/Swagger but I found LB3 so much more fun and easier to use. This is all new stuff to me as I come from a design/front-end background, but i love the power of being able to create my own Rest APIs.

Comment 9 (In reply to #8) by Raymond Camden posted on 2/23/2018 at 4:46 PM

Thank you for the kind words. I'll try to answer them.

1) "Do I have to use Bluemix or can I use something like Pivotal Cloud Foundry?"
I really should have showed an example of this. You can deploy it ANYWHERE you can deploy a Node app. There is nothing special about it in that regards.

2) "Further, do I need to purchase API Connect for production or can I still use LB3 stand-alone?"
LB is 100% open source and free. You don't have to pay for it. APIC has a cost, but also a very generous free tier. You don't need to use APIC. Look at your needs and determine if an API gateway makes sense. You can also use another company's API gateway too.

Comment 10 (In reply to #9) by NM posted on 2/23/2018 at 4:50 PM

Thanks! That clears up some things. Although I have successfully deployed LB3 onto PCF, I can't seem to get my Postgresql database hooked to it. I suspect it has something to do with the environment variables on the cloud server. I'll have to keep at it. Thanks.