Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Volt Showcase - Planning Poker

Volt Showcase - Planning Poker

The talk showcases a reactive planning poker web application with the volt framework.
The application illustrates how reactive synchronization between the UI and the database works and how we can write everything in ruby to build a full fledged modern, javascript based web application.

Sourcecode: https://github.com/koffeinfrei/planning-poker/

koffeinfrei

February 17, 2016
Tweet

More Decks by koffeinfrei

Other Decks in Programming

Transcript

  1. : < fields:text value=" page. session " {{ _ }}

    label="Existing session optional :" ( ) /> : < fields:text value=" page. user " {{ _ }} label="Your name:" />
  2. {{ estimates.each do |estimate| }} <div class="card-wrapper flip if round

    finished? " {{ ' ' _ }} > <div class="card-front"> <div class="user-name">{{ estimate. user _ }}</div> <img src=" card image url estimate. point " {{ _ _ ( _ }} class="card" /> </div> <div class="card-back"> <div class="user-name">{{ estimate. user _ }}</div> <img src=" asset url app main assets images back.png " {{ _ (' / / / / ' }} class="card" /> </div> </div> {{ end }}
  3. def enter session _ session = page. session _ .to

    s _ .empty? ? generate random string : _ _ page. session _ user = page. user _ .to s _ .empty? ? "user- generate random string #{ _ _ }" : page. user _ card deck _ = page. card deck _ _ redirect to _ " estimate / / session #{ }/ card deck #{ _ }/ user #{ }" end
  4. def round finished? _ estimates array _ = estimates.array estimates

    array _ .size > 1 && estimates array _ .all?(&: point _ ) end
  5. def show page. session url _ _ = url.url with

    _ (user: nil, card deck _ : nil)
  6. store. estimates _ .find(user: user, session: session . ) then

    do estimates | | estimate = estimates.array[0] if estimate estimate.tap { e e | | . point _ = false } else store. estimates _ << { user: user, session: session } end end.then do estimate | | self.model = estimate end