rethinkdb / horizon

Horizon is a realtime, open-source backend for JavaScript apps.
MIT License
6.78k stars 351 forks source link

Create example using react-router. #514

Open dalanmiller opened 8 years ago

dalanmiller commented 8 years ago

I've seen a few instances where people are trying to use Horizon with react-router.

For it to work it requires all routes to be redirected to index.html. Creating some boilerplate which extends Horizon with koa, hapi, and express to do this I think would be helpful.

eh3rrera commented 8 years ago

I wrote a tutorial about how to integrate React, React Router, Horizon.io with OAuth authentication, and Express: http://tutorials.pluralsight.com/interesting-apis/building-a-real-time-application-with-react-react-router-horizon-io-and-oauth The Github repo: https://github.com/eh3rrera/react-horizon

It's not exactly a boilerplate but it's a simple app and using Koa or Hapi instead of Express should not be a problem.

Made the same comment in issue #534, I think they are related.