I'm trying to set up a project using Firebase's Backfire (for Backbone) with Browserify/Gulp but running into issues. I did npm install firebase
and npm install backfire
, then in my Models.js
module I'm trying..
// ...
var Firebase = require('firebase'),
Backfire = require('backfire');
module.exports = {
// ...
ItemsCollection: Backbone.Firebase.Collection.extend({
model: ItemModel,
firebase: new Firebase(FIREBASE_URL + 'items')
})
};
Unfortunately, the Firebase property in 'Backbone.Firebase' errors out as undefined..
I located some posts about a npm "shim" called "client-backfire", however, it seems it's been unpublished/deprecated. Any ideas how to get it to work?