Upload
vysakh-sreenivasan
View
2.075
Download
6
Tags:
Embed Size (px)
DESCRIPTION
Introduction to emberjs for Rails developer. Also, introduction to using ember-appkit-rails gem
Citation preview
EMBERJSRich RoR app with
in 2 minutes
@vysakh0
Vysakh Sreenivasan
submify.com
Emberjs what is
MVC frameworkBrowser based js 1
but in BrowserArchitected like iOS, Android
2
that isn’t being rendered by server
“Don’t waste time making trivial choices. Ember.js incorporates common idioms so you can focus on what makes your app
special, not reinventing the wheel.”
Convention over Configuration
3
url - where browser beats native
urlCore principle of Ember
should drive the design of the app
4
Ember community
Yehuda Katz● Ruby on Rails, JQuery core teams
● TC39, the cross-industry group developing new JavaScript features.
● W3C’s TAG, which determines a wide range of web standards chaired by Tim Berners-Lee
Tom DaleApple software engineer in MobileMe & iCloud applications
Evangelizes emberjs in twitter and in the internet
p.s: This is not Russel Crowe :P
Apps & Companiesusing emberjs
an open source app by
Few other companieshttp://emberjs.com/ember-users/
Why ember?When there is my full stack
Rails
Makes it like native apptalks to server when only needed
More interactive, richits javascript on steroids yo!
Next gen AppThis is how web apps will be,
should be
Ember & Railsusing ember-appkit-rails gem
rails new projectecho "gem 'ember-appkit-rails',
github: 'dockyard/ember-appkit-rails'" >> Gemfile
bundle installrails g ember:bootstrap
rails s
http://localhost:3000
echo "{{outlet}}" >> app/templates/application.hbs
rails g scaffold posts titile:string body:text --ember
rake db:migrate
Scaffold posts
http://localhost:3000/#/posts
http://localhost:3000/#/posts/new
Ember Appkit Rails - feels like Rails 4+ - MVC js under Rails structure - Generators - teaspoon(default) test runner for js
It’s a shame to wait till tomorrow
Learning resources
emberjs.com/guidesemberwatch.com
Stuck? Lost?
discuss.emberjs.com
stackOverflow
bye