I'm not sure I fully understand this, is this just for SEO? Why not run the page in phantomJS, which is what we do at https://circleci.com , and what meteor apps do, and any others?
SEO was our first concern, but then we realized performance was the big win. Serving the user a full page of HTML rather than waiting for JS to download before rendering HTML makes a big difference, especially on high-latency or low-bandwidth connections (mobile). EDIT: We decided against using something like PhantomJS or node-chimera because why deal with a DOM if you don't have to? DOM is complicated and slow, comp…
We've Open-sourced Rendr
21–30 of 56 posts
Re: We've Open-sourced Rendr
#22Re: We've Open-sourced Rendr
#23Earlier quoted context omitted.
I don't work there, but I doubt it. With rendr, both the client- and server-side portions of the Backbone stack still need to consume an upstream API. If I had to guess, I'd say that for projects they're building that use this stack, all the templating/rendering/presentation logic is in JS, but that the database interaction stuff probably isn't; they probably have Rails apps that expose a RESTful API that the rendr a…
This is exactly right. We still have 5 years worth of business logic in Rails, so we just expose a RESTful API as part of the Rails app. The same API is consumed by our iOS, Android, Mobile Web, and Desktop clients.
Re: We've Open-sourced Rendr
#24Are there any similar efforts to tie the server with the client, reducing duplication, for Angular?
The first thing I thought of that is similar to Rendr is http://meteor.com/ . I'm not sure about how it works with Angular. It does describe itself as a framework where Rendr describes itself as a library, so I'd think it'd be easier to run Angular stuff on top of Rendr.
Re: We've Open-sourced Rendr
#25Earlier quoted context omitted.
This is exactly right. We still have 5 years worth of business logic in Rails, so we just expose a RESTful API as part of the Rails app. The same API is consumed by our iOS, Android, Mobile Web, and Desktop clients.
Cool stuff, very interesting concept, would love to see an example working with a Rails RESTful API.
In the future, we'd like to come up with some more in-depth tutorials.
Re: We've Open-sourced Rendr
#26so they have completely ditch Rails and Ruby?
Re: We've Open-sourced Rendr
#27Earlier quoted context omitted.
Cool stuff, very interesting concept, would love to see an example working with a Rails RESTful API.
The app template is such an example, consuming the public GitHub API: https://github.com/airbnb/rendr-app-template In the future, we'd like to come up with some more in-depth tutorials.
Re: We've Open-sourced Rendr
#28Wow, looks very impressive from my quick look over it. These days, there are so many JavaScript frameworks for web development, it's starting to make my head spin a little bit. Does anyone have a link to a good rundown of where everyone stands?
Well, even if I had one, it would be outdated in 2 weeks..
Re: We've Open-sourced Rendr
#29Posts like this makes me think Airbnb is a awesome place to work. Sharing is caring!
Re: We've Open-sourced Rendr
#30Just wondering what's the difference between this post and the last one where Rendr was already open-sourced? I mean, it was already open sourced for a while. Is there a change log or an adapter to better integrate with other systems? Thanks!