~/talk

Crossing the Bridge: Connecting Rails and Your Front-End Framework

Talkat RailsConf 2015 · 2015-04-21..04-23· [frontend-architecture, javascript]
slides:none on file

Compares concrete integrations: TodoMVC examples in Angular (Bower, ngResource), Ember (Ember CLI, Ember Data with ActiveModelAdapter + ActiveModelSerializers, preloading models into the store) and React (react-rails with server-side prerender true). Shows two workable patterns — preload JSON via window to eliminate initial API round trips, and isomorphic/server rendering to produce crawlable HTML and remove spinners — and demonstrates that both preload and prerender approaches meaningfully improve perceived performance and SEO.

AI-written summary · about

  1. 0:00Start
  2. 3:19Maintainable, sustainable, performant applications
  3. 6:55First, let's get our Rails project API ready
  4. 8:26How can we manage our client-side data to make it easy to work with?
  5. 9:26Now we can set up our factory to hold our resource and pass it to our controller and our template
  6. 15:10Instead of using JSON calls, we want to preload Ember
  7. 17:02Let's get setup with our client-side code
  8. 18:48Ember will initialize Ember Data objects for us, inferring the correct type from the root of the JSON response
  9. 19:471. Don't fight Ember. Use conventions like AMS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.