An open API service indexing awesome lists of open source software.

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実装サンプル(かなり簡易版)

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
~~~