how to make an ember-cli Ember 2 Ruby on Rails app - ember.js

Is there a summary of the changes or tutorial you need to do to get ember-cli to work with Ember 2? I did a project with Ember like 2 years ago and a potential client was interested in Ember 2. Or is there a new preferred way to build Ember / Rails apps?

Ember-CLI with Ember 2.0 is not released yet. It's still on 1.13.8. I assume they are waiting for all core components to be released under 2.0. E.g. ember-data released 2.0 just few days ago. So I would recommend you to wait for Ember-CLI 2.0 official release. After that you would have to just run ember update.
If you can't wait, you can change dependencies manually in bower.json.
Talking about Ember-CLI and Rails integration, please take a look at this project: https://github.com/rwz/ember-cli-rails

Related

All the routes not loaded in Ember js 1.11

I'm trying to migrate an ember application from 1.10 to 1.11.4 (I'm on the way to upgrade the ember to the latest version). When I have upgraded the ember version most of the routes are not initialized (some did). Error on the console says "The route ... was not found". Also if I check using ember inspector most of the routes are not there. Working fine with 1.10.
Quite new to ember, tried for couple of days without any luck.Need some help from some experienced ember guys.

What are the respective purposes of the emberjs.com and ember-cli websites?

I am a bit confused regarding the ember websites "emberjs.com" and "ember-cli.com". Isn't ember-cli now a part of emberjs and documented at "emberjs.com"? If so, why have a different website for ember-cli? Also, why do the sites differ regarding the versions of the prerequisite JS frameworks? For example, the emberjs.com getting starting page says to use Node.js 0.12 or higher while the ember-cli.com site says to use the latest stable version of Node (version 4.0.x).
the emberjs.com getting starting page says to use Node.js 0.12 or
higher while the ember-cli.com site says to use the latest stable
version of Node (version 4.0.x).
Seems like emberjs.com is out of sync, you can create issue on emberjs.com website repository on GitHub or hope that it's already created and it will be resolved shortly. Also, there was as issue with bufferutil in Ember CLI + node.js 4.0, so they might wait until it's resolved, but for some reason it's recommended on ember-cli.com.
Isn't ember-cli now a part of emberjs and documented at "emberjs.com"?
It isn't part of Ember.js. It's part of Ember.js ecosystem. It's recommended tool to work with library and that's why examples in guides assume that you're using Ember CLI. But, you could also use Ember.js without Ember CLI by loading jQuery, Ember.js, Ember.js template compiler and working on globals.
Ember.js documents everything about library itself, how logic behind library works, core concepts. You have components, routing, controllers, models explained there, but you won't find information there how to add CoffeeScript to your project.
Ember CLI website documents everything about Ember CLI, which is tool that provides:
asset pipeline
a strong conventional project structure
powerful addon system for extension.
You can see in user-guide that it documents possible build configurations, how to make SASS or CoffeeScript working in your environment etc.

Ember 2.0 without Ember cli?

Seems nowadays everything including loading modules is generated from embercli.
Is it possible to create a emberjs 2.0 application without the use of ember-cli?
What are some limitations of not using ember-cli?
Yes, it definitely still is. I support 5 ember applications at my work. 2 of which live on the ASP.Net stack, 3 are on a Java stack. The 2 on the ASP.Net stack aren't using ember-cli and work perfectly fine as a global application.
Here, I've created an ember app without ember-cli: http://emberjs.jsbin.com/xeqevogado/edit?html,js,output

Is Emberjs (with Ember Data) and Django (with rest framework) ready for prime time?

I have been studying emberjs and tried to get it to work with the django rest framework, without much luck.
Here is what I have found:
django rest framework does not natively spit the json format that Ember expects
ember django rest framework adapter is based on ember-data, which leads to next point
ember-data is not production ready, and the rest framework adapter does not work on the latest ember-data
someone mentioned to roll your own without using ember data in this link http://discuss.emberjs.com/t/ember-data-endless-frustration/893/2 but it makes me feel like doing things twice since I already defined my models in django.
My question is, is this combination ready for prime time and has anyone used this combination for any production sites?
Author of ember-django-adapter here. We just released version 1.0.0 compatible with Ember Data 1.13.7 and higher and Django REST Framework 3.0.0 and higher. It has grown with Ember for the past year and a half, and is ready for prime time.
I'm using ember-data-django-rest-adapter and it's working fine with latest stable ember and canary ember-data. There's an experimental ember1.0 compatible branch. Luckily the code for django's adapter as of this moment is only 300 lines and easily understandable.
To answer your question: I think it's ready for startups to use in production in a few months (we're going live in January 2014).
As of April 2015, the package that #ObviousCat mentioned is deprecated in favor of the django rest framework ember package. We're using it in our Ember/Django project and it does wonders for "enhancing" DRF to play with Ember.
If you want to create the adapter on the client side, there is also an option for that with the ember django adapter, although we decided to make changes to the server side instead of the client side, so we aren't using that.

Compatible Versions: Ember, Ember Data, Handlebars

I am trying to learn Ember.js by following TodoMVC example. I am quite confused on with versions of Ember, Ember Data and Handlebars are compatible. The tutorial states following
Blockquote
The latest release candidate (RC3) of Ember.js can be downloaded directly from the Ember.js website. Ember.js has two dependencies: jQuery and Handlebars. jQuery can be downloaded from at http://jquery.com/ and Handlebars can be downloaded at http://handlebarsjs.com/. This guide uses ember-data for managing model data. The latest development builds of Ember data can be downloaded at http://builds.emberjs.com/. The build compatible with RC3 has the SHA e324f0e.
The Ember RC3 is no longer in download link. It has RC5. Can any one please help me which versions should I use?
Thanks
Currently the latest versions are
handlebars 1.0
ember rc.5
ember-data 0.13
All of those versions were bumped within the last week, so there won't be a lot of information the web just yet. You can download them from their respective websites (for ember-data read the blog post on the emberjs website. The link is in the comments)
I'd suggest you use the latest versions if you're starting out. Not much has changed in ember since RC-3, so you won't miss anything. I suggest you read some of the blog posts on the ember site for the changes in each revision. The team is very good in putting up explanations on the blog regarding updates.