An example Swarm+React project
JavaScript CSS Makefile Shell
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
css links to github, blog, etc Dec 18, 2014
model fix #26 (upgrade swarm upto 0.3.25 and use Vector forEach/map methods) Dec 18, 2014
view Merge branch 'master' of https://github.com/gritzko/todomvc-swarm Dec 18, 2014
.gitignore css media query for embeded iframes added Sep 23, 2014
LICENSE npm stuff Oct 23, 2014
LocalTodoApp.js change routing ( /list/itemX/itemXY/itemXYZ... ) Sep 25, 2014
Makefile fix: mkdir dist/ Oct 26, 2014
README.md slightly more verbose README Oct 26, 2014
TodoApp.js
TodoAppServer.js send the static page head immediately Dec 6, 2014
TodoRouter.js fix incorrect this Oct 16, 2014
fake_auth_init.js args for the server +cleanup Oct 5, 2014
favicon.ico favicon Sep 23, 2014
local.html support offline (manifest in todo.appcache) Oct 3, 2014
package.json fix #26 (upgrade swarm upto 0.3.25 and use Vector forEach/map methods) Dec 18, 2014
run.sh minor: script Oct 16, 2014
serv.js pushbase-based server: much simpler and cleaner Sep 22, 2014
todo.appcache use react.min.js from node_modules/react Oct 20, 2014

README.md

TodoMVC app using React.js+Swarm.js combo

This demo is a showcase for key features of the Swarm library:

  • isomorphic js (node.js server part does full page render)
  • real-time sync (open the exact same page in two tabs/browsers)
  • offline work (turn the internet off, then load the page :) )
  • caching (work offline, close the browser, open when online)

Step by step:

git clone https://github.com/gritzko/todomvc-swarm
cd todomvc-swarm
npm install
npm start

...then open it http://localhost:8000/SomeTodoName

There is a blog post introducing the demo: http://swarmjs.github.io/articles/todomvc/

Normally, this demo is online at: http://ppyr.us

See our Twitter account at: http://twitter.com/swarm_js

Feel free to contribute issues, bugfixes and feedback.

It is recommended to contact @gritzko before doing non-trivial pull requests.