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
Question: does Loopback 4 require typescript? I love Loopback 3 -- but Loopback 4 looks like quite a departure.
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.
Looks like the answer is no - it will not *require* TypeScript. (But it will probably be recommended.)
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.
I haven't gotten there yet - but I'll add it to my queue. It's a topic I've needed to cover.
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?
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.
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.
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.
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.