8000 GitHub - cleberar38/esri-flux-react: Simple demo application using Esri's JavaScript API and React. It also shows how to use the Flux architecture in a map based application.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Simple demo application using Esri's JavaScript API and React. It also shows how to use the Flux architecture in a map based application.

License

Notifications You must be signed in to change notification settings

cleberar38/esri-flux-react

 
 

Repository files navigation

esri-flux-react Build Status

Simple demo application using Esri's JavaScript API and React. It also shows how to use the Flux architecture in a map based application. This is using a naive implementation of flux I wrote myself based off of React's TODO MVC example, it's good at demonstrating the concepts of Flux but is by no means intended to be a Flux library. It would work perfectly fine in production on a simple app but once your app gets larger and has multiple stores, especially stores that depend on each other, you may want to use something like Alt which has waitsFor in the dispatcher as well as other extras and is much more battle tested.

Demo

The Demo is currently using the react-motion branch.

http://robert-w.github.io/esri-flux-react/

Getting Started

This project requires node.js and bower.

  1. Run (may need sudo depending on how you installed node): npm install
  2. Run: bower install

Scripts

Development

Run: npm start

This will compile all stylus, jade, and es6 modules, and it's using babel for es6 modules so it will compile JSX for you as well.

Production

Run: npm run dist

Generates a minified build using a custom prerender script, requirejs optimizer, babel, stylus, jade, and gulp in a dist folder. After running, you can look at the index.html source and you will notice a big string of React markup generated from prerender.js.

Notes

Check out the react-motion branch. Instead of using css animations on the basemap gallery it is using react-motion by @chenglou, I like this version much better and it will soon be merged in to master :)

Known Issues

Build commands may trip up on windows, there is an npm run distWin which can be used for a custom build on windows.

About

Simple demo application using Esri's JavaScript API and React. It also shows how to use the Flux architecture in a map based application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.6%
  • CSS 15.7%
  • HTML 3.2%
  • ApacheConf 1.5%
0