Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yang-wei/vue-redux
What happen when Vue.js + Redux
https://github.com/yang-wei/vue-redux
Last synced: 3 months ago
JSON representation
What happen when Vue.js + Redux
- Host: GitHub
- URL: https://github.com/yang-wei/vue-redux
- Owner: yang-wei
- Created: 2015-07-11T07:22:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-15T04:36:28.000Z (over 7 years ago)
- Last Synced: 2024-05-18T18:03:59.310Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 142
- Watchers: 3
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-vue-cn - vue-redux ★74 - Redux binding for Vue by @yang-wei (Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) / Libraries & Plugins)
README
> __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 :computer:
![](https://cldup.com/J7pXN7Y2ix.png)
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 :fire:
```
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](https://github.com/yang-wei/vue-flux/tree/flux) or [here](https://github.com/yang-wei/vue-flux/releases/tag/v0.0.1)## Vuex
Recently, the creator of Vue.js created [Vuex](https://github.com/vuejs/vuex) which is a library to enable Vue.js adopt Flux-like architecture.
Have a look if you're interested =)