AstorJS
Backbone.js extensions for Flux applications
About
AstorJS combines [Backbone.Async](https://github.com/emaphp/backbone.async "") and [Backbone.Prism](https://github.com/emaphp/backbone.prism "") and introduces the `Astor.Model` and `Astor.Collection` classes, both supporting Promises and compatible with React through the Flux architecture implemented in Prism.
Installation
```bash bower install astorjs --save ```
```bash npm install astorjs --save ```
>You'll also need a polyfill for Promises if your application targets old browsers. Check [promise-polyfill](https://github.com/taylorhakes/promise-polyfill "").
Classes
**Astor.Model**
An improved version of `Prism.State` supporting Promises for its `fetch`, `save` and `destroy` methods.
**Astor.Collection**
An improved version of `Prism.Store` supporting Promises for its `fetch`, `create`, `update` and `delete` methods.
**Astor.Dispatcher**
Same as `Prism.Dispatcher`, a `Flux.Dispatcher` including the `handleViewAction` and `handleServerAction` methods.
**Astor.Channel**
Same as `Prism.Channel`, a semi-alias of `Backbone.Radio.Channel`.
Utilities
**Astor.compose**
Same as `Prism.compose`, an utiility for creating `Higher-Order Components` that listen for changes in Stores.
Mixins
**Astor.Events**
Same as `Prism.Events`, a combination of `Backbone.Events` and `Backbone.Radio.Request`.
License
This library is distributed under the terms of the MIT license.