https://github.com/chrisdwheatley/react-flux-promises
An example repository showing how to handle the asynchronosity of promises in Flux's synchronous world.
https://github.com/chrisdwheatley/react-flux-promises
Last synced: 5 months ago
JSON representation
An example repository showing how to handle the asynchronosity of promises in Flux's synchronous world.
- Host: GitHub
- URL: https://github.com/chrisdwheatley/react-flux-promises
- Owner: chrisdwheatley
- License: mit
- Created: 2015-05-09T09:14:29.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-11T19:52:04.000Z (almost 10 years ago)
- Last Synced: 2024-04-14T19:51:03.488Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# [React](https://facebook.github.io/react/), [Flux](https://facebook.github.io/flux/), [Promises](http://www.html5rocks.com/en/tutorials/es6/promises/)
An example repository showing how to handle the asynchronosity of promises in Flux's synchronous world.
### Background
I wrote up my thought process behind this code, you can read it [here](http://swirlycheetah.com/handling-promises-in-flux/).
### Try It Out
Dependencies
* [Node.js](https://nodejs.org/)/[io.js](https://iojs.org/en/index.html) & [npm](https://www.npmjs.com/)
* [jspm](http://jspm.io/)Clone the repository.
```
git clone [email protected]:swirlycheetah/react-flux-promises.git
cd react-flux-promises
```Install the project dependencies.
```
npm install
jspm install
```Transpile the source code.
```
node_modules/.bin/gulp transpile
```Start watching for changes to the source code.
```
node_modules/.bin/gulp watch
```Fire up a local server from the root of the project, something like [live-server](https://www.npmjs.com/package/live-server) or Python's built in static server (`python -m SimpleHTTPServer`) should do the trick.
Navigate to the address your code is being served at in the browser to see things working.
### License
Released under the MIT license: [opensource.org/licenses/MIT](http://opensource.org/licenses/MIT)