https://github.com/mistadikay/flux-http-example
:construction: Flux flow example with http request and error handling for a better understanding of Flux architecture
https://github.com/mistadikay/flux-http-example
Last synced: about 2 months ago
JSON representation
:construction: Flux flow example with http request and error handling for a better understanding of Flux architecture
- Host: GitHub
- URL: https://github.com/mistadikay/flux-http-example
- Owner: mistadikay
- Created: 2015-02-09T04:49:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-03T17:19:50.000Z (over 5 years ago)
- Last Synced: 2024-04-11T15:51:36.781Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 46
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Flux example with http request
=====================[](http://travis-ci.org/mistadikay/flux-http-example)
[](https://david-dm.org/mistadikay/flux-http-example)
[](https://david-dm.org/mistadikay/flux-http-example#info=devDependencies)
[](https://codeclimate.com/github/mistadikay/flux-http-example)If you're stuck at understanding Flux architecture, this example might help you. It contains very basic flux data flow with http request and errors handling.
Flux technologies stack:
* for the sake of simplicity, this example uses just original [Facebook's Flux dispatcher](https://github.com/facebook/flux)
* [superagent](https://github.com/visionmedia/superagent) for http requests
* [eventemitter3](https://github.com/primus/eventemitter3) for emitting events from store to react componentIllustration of Flux unidirectional data flow:
### installation
```
npm install
```### run
```
npm start
```
Runs webpack-dev-server with HMR at http://localhost:3000