vidoss / flux-backbone

Thin wrapper around Backbone Model and Collections to use in Flux pattern.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Thin wrapper around Backbone Model and Collections to use in Flux pattern.


Languages

Language:JavaScript 75.7%Language:CSS 17.2%Language:HTML 7.1%