ssr-demo-kit icon indicating copy to clipboard operation
ssr-demo-kit copied to clipboard

Example of fetching data in a isomorphic way to backend

Open ptomasroos opened this issue 11 years ago • 3 comments

ptomasroos avatar Nov 04 '14 08:11 ptomasroos

:+1: This is what I'm currently struggling with. I understand that a store is for controlling a part of the client side app. So which part will become responsible for handling data from e.g. MongoDB? I could put it in myself with AJAX and server side scripting but that's going away form the Isomorphic greatness that is this repo, fast. :(

Kingdutch avatar Mar 25 '15 10:03 Kingdutch

I need to find time for this :disappointed: I'll ask my manager to what extent I can just copy/paste one of our (i.e.: SoundCloud's) apps.

zertosh avatar Mar 25 '15 19:03 zertosh

For anyone that might stumble accross this issue

An example implementation of this is given in the documentation of the Fluxible library. Although using something like Fluxible, Reflux or Flummox feels as magic and 'unclean' (imho) they do provide for good examples.

A walkthrough from client to server can be found here: https://github.com/yahoo/fluxible/blob/master/docs/guides/bringing-flux-to-the-server.md

Kingdutch avatar Mar 28 '15 15:03 Kingdutch