Thin wrapper around Backbone Model and Collections to use in Flux pattern.
Please read the blog post on FluxBackbone: "Building Backbone apps using Flux".
Flux is available as a npm module, so you can add it to your package.json file or run
npm install flux-backbone
Usage:
var FluxBackbone = require('flux-backbone');
var TodoList = FluxBackbone.Collection.extend({
...
})
Clone the repo and navigate into the resulting flux-backbone
directory. Then run
npm install
This will run Gulp-based build tasks automatically and produce the file FluxBackbone.js, which you can then require as a module.
You could then require the Dispatcher like so:
var FluxBackbone = require('path/to/this/directory/FluxBackbone');
The build process also produces de-sugared version of FluxBackbone in a lib
directory, and you can require those modules directly, copying them into whatever directory is most convenient for you.
Todo Example: TodoMVC