Re:The 3REE Stack: React, Redux, RethinkDB and Express.js
by bryanlarsen on Monday October 05, 2015 @05:13PM
(#10334996)
If there is no server side functionality, why not use one of the many react static site generators?
Re:The 3REE Stack: React, Redux, RethinkDB and Express.js
by fbonetti on Monday October 05, 2015 @05:24PM
(#10335074)
Because this isn't a static site. Updates are being fed to the client via websockets.
Re:The 3REE Stack: React, Redux, RethinkDB and Express.js
by bryanlarsen on Monday October 05, 2015 @05:37PM
(#10335155)
But neither koa.js nor express.js do websockets. You're holding up a site that would probably be simpler without both koa and express as an example to say that it doesn't make much of a difference whether you choose koa.js or express.js.
Re:The 3REE Stack: React, Redux, RethinkDB and Express.js
by jkarneges on Monday October 05, 2015 @06:18PM
(#10335419)
We've built a pretty cool library for Express that makes it easy to do WebSocket stuff through Pushpin (a proxy server). http://blog.fanout.io/2015/03/09/stateless-websockets-with-e...
Not that this was covered in the article, but it would be a reason to choose Express as the backend. It would be cool to build something similar for Koa though.
Check this out https://github.com/joshhunt/reactapus/blob/master/src/server.... Koa or Express.js wouldn't really make that much of a difference.