Loopback and prerender.io

Posted by & filed under AngularJS, LoopbackJS.

While the prerender.io team does not provide explicit directions for getting their service/NodeJS service to work with Loopback, it isn’t hard to do so. At the top of your top level bootstrap JS file, after the “app” variable is declared simply provide the following: app.use(require(‘prerender-node’).set(‘prerenderToken’, ‘<your token here>’)); Then, from the prerender.io service dashboard, add… Read more »

Posting to related models in Loopback Explorer

Posted by & filed under LoopbackJS.

I was trying to post to a model in the Loopback Explorer and certain fields referenced IDs from related models, only no matter what format my JSON was in my data was being inserted as an array where each index value corresponded to each letter in the string of text. I discovered that the cause… Read more »