Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: 25 days ago
JSON representation

:construction: Flux flow example with http request and error handling for a better understanding of Flux architecture

Awesome Lists containing this project

README

        

Flux example with http request
=====================

[![Build Status](http://img.shields.io/travis/mistadikay/flux-http-example/master.svg?style=flat)](http://travis-ci.org/mistadikay/flux-http-example)
[![Dependency Status](https://david-dm.org/mistadikay/flux-http-example.svg?style=flat)](https://david-dm.org/mistadikay/flux-http-example)
[![devDependency Status](https://david-dm.org/mistadikay/flux-http-example/dev-status.svg?style=flat)](https://david-dm.org/mistadikay/flux-http-example#info=devDependencies)
[![Code Climate](https://codeclimate.com/github/mistadikay/flux-http-example/badges/gpa.svg)](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 component

Illustration of Flux unidirectional data flow:
![Flux flow](https://github.com/facebook/flux/raw/master/docs/img/flux-diagram-white-background.png)

### installation

```
npm install
```

### run

```
npm start
```
Runs webpack-dev-server with HMR at http://localhost:3000