Here's a quick introduction to fluxible and Hapi for those whom aren't familiar with either or.
What is fluxible?
Great question! fluxible is an open source library created by Yahoo to assist in creating 'isomorphic' react applications that follow the flux architecture. Isomorphic is a term used for a JavaScript application that shares code between the server and the client. Long story short, fluxible makes it easier to create awesome react applications that are also rendered on the server.
What is Hapi?
Hapi.js is an open source, backend web framework built by Walmart Labs. Express is the most popular of such frameworks and is what most of the fluxible examples that you will find are using. I prefer Hapi.
What da problem is?
Hapi does not use the connect middleware that express does, so the fluxible implementation may not be clear. We're only going to take a look at the server side rendering implementation of fluxible. This is the only major difference in it's use. I will use an example that includes routing so we can see the whole story.
The express way
I've commented in the gist to explain what is happening on the server side.
Hapi time
Now lets see what this looks like when we translate it into Hapi!
In conclusion..........
It's pretty much the same! Instead of express middleware we use the 'onPostHandler' hook into hapis request lifecycle to intercept the request, check the route, and respond with our static markup.
Yey for server rendered react!