7

I'm looking into solutions for integrating Ember.js with Node.js+Express+Tower.js.

I just started looking into Tower.js (the last couple of hours), and it looks like that the framework provides a nice structure for placing both server-side and client-side code (similar to the assets folder in Rails).

Since everything is in Javascript, I could either place Ember application code:

  1. Entirely on the client, i.e., send everything on first request.
  2. Serve only what is initially needed, and serve the rest only upon request.

In the 2nd solution, one could render the views on the server and send pure HTML.

Also what about the application logic of Ember (controllers, models, states, ...). How can it better be integrated with server-side Javascript (e.g., node.js+Express+Tower.js), so that repeated code is minimized. In an ideal scenario, you define each model/controller/etc once and its used both on the server and on the client.

Panagiotis Panagi
  • 9,927
  • 7
  • 55
  • 103
  • Found this framework, http://drumkitjs.com/, "A plugin-powered, full-stack Web development framework for Node.js. It allows the developer to write one set of CoffeeScript/JavaScript files and run them both on the server and on the browser." – Panagiotis Panagi Apr 14 '12 at 16:59

1 Answers1

8

We are integrating Ember.js into the core of Tower.js, this has been planned from the beginning.

Not quite there yet. But it's happening next.

Ember currently works in Node.js and the Browser, as does Tower. Controllers on the server will work like Rails' with web socket additions. Controllers on the client will work like they do on the server and like with Ember, with web socket support - still fleshing this out.

Lance
  • 75,200
  • 93
  • 289
  • 503
  • 3
    What's the latest on this? Some of us have been concerned with little seemingly going on with TowerJS that we're fearful things are dying off. This gives me some hopes that perhaps you're just putting some finishing touches onto this major integration? – ylluminate Jun 18 '12 at 23:10
  • I too, am concerned with the status of TowerJS. It doesn't look like there has been much progress lately based upon the commit log on Github. Any updates that would alleviate these concerns would be appreciated. – Matt Huggins Jul 03 '12 at 13:48
  • 1
    Merged dev into master, it was all hidden in the background :). Things are moving smoothly with Ember now. – Lance Sep 13 '12 at 10:28