Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write modular Ember.js apps

Tags:

ember.js

Is there any guidance on how to write modular Ember.js apps? I have seen Tom Dale's position on AMD here so I am not going to force fit AMD on to the framework (as some have attempted here). It appears that Ember internally uses bpm/spade. Is that a reasonable approach to modularize Ember apps too? Any samples using this approach?

P.S. The getbpm.org site seems to be down which makes it difficult to learn about it. There is a github page but it refers to the site for install instructions.

like image 930
Naresh Avatar asked Feb 11 '12 20:02

Naresh


People also ask

How do I create an ember app?

Create a New Application Once you've installed Ember CLI via npm, you will have access to a new ember command in your terminal. You can use the ember new command to create a new application. This one command will create a new directory called ember-quickstart and set up a new Ember application inside of it.

Does Apple use Ember JS?

Apple uses Ember. js for all of their web apps. Ember. js is still one of the best JavaScript framework out there.

How do you make embers?

To create a new project using Ember CLI, use the new command. In preparation for the tutorial in the next section, you can make an app called super-rentals . A new project will be created inside your current directory. You can now go to your super-rentals project directory and start working on it.


4 Answers

BPM in it's current form is no longer supported by the core team, but is community supported. The only build tools they are officially providing support for is rake-pipeline. However, BPM does still work and it works well (I still use it with my projects). For info on how to use it see this: https://github.com/ud3323/bpm/wiki/Using-BPM-with-Ember. You may want to use my fork of bpm too. I've merged in Joe West's support for a proxy middleware.

There is also community build tools for node.js called ember-runner which looks promising as well.

As for using rake-pipeline. Look at the AssetFile on the emberjs projects to see how must be configured using rake-pipeline and rake-pipeline-web-filters. Also, take a look at the answers to this question on StackOverflow (especially Yehuda's). You may also find this gist helpful as well.

like image 179
Roy Daniels Avatar answered Nov 12 '22 18:11

Roy Daniels


Try Ember App Kit - maybe it would help you.

like image 33
petkopalko Avatar answered Nov 12 '22 19:11

petkopalko


I have played a bit with Rails, so for me, creating a rails 3.2 app was the easiest way to achieve this. So if you don't mind using rails as a back-end, I this might suit you.

like image 30
CHsurfer Avatar answered Nov 12 '22 19:11

CHsurfer


Perhaps ember-tools could help:

https://github.com/rpflorence/ember-tools

like image 30
Ilja Sucharev Avatar answered Nov 12 '22 19:11

Ilja Sucharev