Monday, September 24, 2012

Ember.js Tools & Resources 1 — Official Libraries

Dependencies

jQuery

A JavaScript utility library so useful and important that most of the major websites in the world now include it, and most major JavaScript projects build on top of it.  If you're not already familiar with it, take an hour or two right now to fix that.  I'm no fan of Microsoft, but the best videos for newcomers to jQuery I've seen are chapters 14-17 of this series. Go watch them.

Website: http://jquery.com/
GitHub: https://github.com/jquery/jquery
Downloads:
Ember is not yet compatible with jQuery 1.8.

Update: I was wrong! The core team have been using jQuery 1.8 on master without problems. Thanks to Luke Melia for answering my comment, and Ember Noob reader Sylvain Mina for catching the error.

The Framework

The three pieces of the framework are Ember, Ember-Data, and Handlebars.

Note: Each JavaScript library is available in a full size "debug" version, which include comments and debug assertions and is preferred during development, or the "minified" versions which are shrunken down to the smallest possible filesize, suitable for deployment to production. I recommend and will be using the debug versions. Also, I build on top of Rails in my personal projects, and the asset pipeline does the minification for me at deploy time anyway.

Support Ember: Buy Stickers

Ember

The core library.  (The analog to Rails for client-side JavaScript apps.)

Website: http://emberjs.com/
GitHub: https://github.com/emberjs/ember.js/
Downloads:

Ember-Data

The ORM library.  (The analog to ActiveRecord for Ember.)  Comes with a generic REST adapter suitable for most common cases of interacting with a server-side REST API. Adapter API is clean and documented so you can roll your own for other purposes.

Website: None
GitHub: https://github.com/emberjs/data
Downloads:
There is no "stable" release. Also, the core team have said they intend to roll Ember-Data into the Ember core as part of the Ember 1.0 release (date TBD).

Handlebars

The default Ember templating library.  (The analog to Rails Views, but doesn't allow embedding arbitrary code like ERB/Haml. More on that later.)  Must be downloaded/included separately.

Website: http://handlebarsjs.com/
GitHub: https://github.com/wycats/handlebars.js/
Downloads:

2 comments:

  1. 8 months ago, I began with Js, Ember, rails too. I'm very interrested by your WIP here.
    Jue one comment at the moment, I think Emberjs is compatible with jQuery 1.7 & 1.8

    ReplyDelete
    Replies
    1. Ha! I went looking for confirmation one way or another, and found this blog post on which I had posted a comment asking about jQuery version compatibility — and then completely forgot that I did. :)

      Turns out Luke Melia responded a few days later saying the core team have been using 1.8.0 without problems. So, you're right! Good catch.

      Delete