flux-backbone
v1.0.1
Published
Thin wrapper around Backbone Model and Collections to use in Flux pattern.
Downloads
10
Readme
flux-backbone
Thin wrapper around Backbone Model and Collections to use in Flux pattern.
Documentation
Please read the blog post on FluxBackbone: "Building Backbone apps using Flux".
Installing FluxBackbone
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({
...
})
Building FluxBackbone from a Cloned Repo
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.
Examples
Todo Example: TodoMVC