What happen when Vue.js + Redux
Clone or download
Latest commit aa10b5e Feb 7, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Update example to Vue version 1.0.0. Use new Vue syntax. Update other Jan 3, 2016
test Revert test code to es5 Sep 26, 2015
.gitignore flux + vue.js Jul 11, 2015
.travis.yml Oh travis Nov 12, 2015
README.md Update README.md Feb 6, 2016
index.js export mixin Nov 11, 2015
package.json 0.0.2 Jan 14, 2016
reduxMixinsCreator.js Move main module to root and example to new folder Sep 26, 2015

README.md

Vue.js: Vue.js is a library for building modern web interfaces. It provides data-reactive components with a simple and flexible API.

Redux: Predictable state management for JavaScript apps

vue-redux

A Vue.js mixins to integrate redux.

Note: Not production ready. Use at your own risk.

Installation

npm install vue-redux

How to use ?

Please see the example in this repo.

Run the example 💻

This app is just a pretty simple task list app. But it shows how to use vue-redux in a Vue.js application. Nothing fancy, to run it

git clone https://github.com/yang-wei/vue-redux.git 
cd vue-redux/example
npm install
npm run build

To watch with webpack hot module replacement 🔥

npm run hot

And go to http://localhost:8080/.

What about the pure Flux?

I start to experiment this with the pure Flux. You can still find it on flux branch or here

Vuex

Recently, the creator of Vue.js created Vuex which is a library to enable Vue.js adopt Flux-like architecture. Have a look if you're interested =)