https://github.com/maechabin/flux-utils-sample
Flux UtilsでのFlux実装サンプル(かなり簡易版)
https://github.com/maechabin/flux-utils-sample
flux flux-utils immutablejs react sample
Last synced: 24 days ago
JSON representation
Flux UtilsでのFlux実装サンプル(かなり簡易版)
- Host: GitHub
- URL: https://github.com/maechabin/flux-utils-sample
- Owner: maechabin
- Created: 2016-01-30T07:11:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-06T05:05:01.000Z (about 10 years ago)
- Last Synced: 2025-02-26T17:44:24.667Z (about 1 year ago)
- Topics: flux, flux-utils, immutablejs, react, sample
- Language: JavaScript
- Homepage:
- Size: 244 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flux-utils-sample
Flux Utilsを使った実装サンプル(かなり簡易版)
できる限りシンプルな構成でのFlux実装
## デモ
フォームに入力したテキストを表示させるだけのもの。
http://jsrun.it/maechabin/WiIU
## サンプルソース
- [src/app.js](https://github.com/maechabin/flux-utils-sample/blob/master/src/app.js)
- [index.html](https://github.com/maechabin/flux-utils-sample/blob/master/index.html)
## サンプルの確認
### 1. サンプルのダウンロード
~~~
$ git clone git@github.com:maechabin/flux-utils-sample.git flux-utils-sample
~~~
### 2. サンプルをcloneしたディレクトリに移動して、必要なパッケージのインストール
~~~
$ cd flux-utils-sample
$ npm install
~~~
### 3. サンプルを開く
~~~
$ open ./index.html
~~~
## サンプルの修正
### 1. 「.src/app.js」を修正したら、以下のコマンドを実行
~~~
$ browserify ./src/app.js -o ./dist/bundle.js
~~~
※browserifyがシステムにインストールされていない場合は、以下コマンドでインストール
~~~
$ npm install -g browserify
~~~
### 2. サンプルを開く
~~~
$ open ./index.html
~~~