SpainJS - The pipedream of sharing code between node JS and the browser
Why Stack Overflow recommends it
Stack Overflow users link it when answering how to reuse Backbone routes, templates and views on a Node.js server, especially for SEO-friendly server rendering.
Recommended by 3 people across 3 different months, 2012 to 2013.
What it is
A 2012 SpainJS conference talk by Keith Norman, a front end developer who worked at Groupon, on sharing routing, templates, controllers and possibly models between Node.js and a Backbone.js browser app. It walks through a concept demo of reusing the same code on server and client.
What people said
Recommends glebm · 2012-08 · Stack Overflow · on “Which JavaScript MVC/MVVM is SEO friendly?”
You cannot have a pure JavaScript web-app (i.e. the server is API-only) until search engines learn to index JS apps. However, if you can share view templates between server and client, that will lift the larger part of the burden of having a non-JS version. You can use any JS framework you like. Mustache [LINK] , for example, has implementations for many languages (Ruby, PHP, and JS), and can be easily used from JavaScript. The Pipe Dream of Sharing Code between Node and the Browser talk [this video] explores the possibility of sharing routing, controller, template, and even model code code between Node.js and Backbone.js, with a concept demo on GitHub [LINK] . If you are just looking into buildi
Recommends Sergio Cinos · 2012-10 · Stack Overflow · on “Using node.js to serve content from a Backbone.js app to search crawlers for SEO”
Take a look to the talk 'The pipedream of sharing code between node JS and the browser' by Keith Norman. AFAIK, they are using this technique at Groupon. Video: [this video] More info: [LINK]
Recommends Daniel Fernandez · 2013-02 · Stack Overflow · on “Re-using backbone routes, models, and views on the node.js server”
I recently did some research on the field and found some interesting projects that are using the same backbone code on the client and server (nodejs). Project 1 The first one was introduced by Keith Norma from Groupon. He managed to reuse backbone router + templates on the client and server. App demo: [LINK] Presentation at SpainJS talk: [this video] Project 2 The second project is Rendr presented by Spike Brehm from Airbnb but not released yet to the public. It seems a bit more ambitious as it also trades backbone model and collections to the nodejs server. You can read more about it here: [LINK] UPDATE : Rendr code has been released: [LINK] Project 3 There is another project that also allows to