simple boilerplate for full-stack real-time apps built with ES6, react, express and socket.io
See demo here: http://react-socket-starter-demo.herokuapp.com/.
##What's included
- ES6 on both Client and Server (via babel)
- React on the client (with react-dom and react-router)
- Express and Socket.io on the server
- npm and gulp set up to get comfortably developing in no time (NB! Livereload is enabled via browser plugin, so you have to install it).
- sass stylesheets and base for simple sass styling
git clone git@github.com:GeorgeStrakhov/react-socket-starter.gitcd react-socket-starterrm -rf .git- assuming that you want to have your own reponpm installnpm run dev- starts dev server with watch and livereload (via browser plugin, make sure to have it installed).- open browser http://localhost:4242 and start developing
(remember that free apps on Heroku sleep for at least a few hours a day!)
- install heroku toolbelt
- standard git stuff:
git init && git add -A && git commit -am "init" && git push heroku createheroku stack:set cedar-14heroku features:enable http-session-affinitynpm run deploy
- enable HMR
- optimize build process: gulp should run incremental builds on watch