A sync module for Backbone.js and Node.js for use with MySQL. The motivation behind this module is that most of the ORM's for Node.js are kind of crappy. They either have bugs which make them unusable or they impliment a promises interace that is not to my liking. I was also looking for something that would work mostly the same on the frontend as the backend so that our developers can learn just one framework.
Install the module with:
npm install backbone-mysql
var Backbone = ;var mysql = ;Backboneclient = mysql;var MyModel = BackboneModel;var example = id: 1 ;example;
Since the promises/callback pattern for Backbone is not very Node.js-ish I would recommend using https://npmjs.org/package/backbone-callbacks to make things feel more native.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
v0.1.0 Inital Development Release
Copyright (c) 2012 Chris Cowan
Licensed under the MIT license.