Using Ember Data definitions on the server


#1

Did anyone succesfully use Ember + Ember Data in a NodeJS server environment? I’d like to reuse my Ember Data model on the server, to manipulate data behind a REST interface (CouchDB). It seems Ember-runtime (https://github.com/emberjs/ember.js/tree/master/packages/ember-runtime) exists for this purpose, but I can’t find any further info and can’t get it to run. Thanks!


#2

You are trying to use ember-data like an ORM server-side? I highly doubt that will get you very far, even if it worked.

Take a look at http://sequelizejs.com/documentation or node-orm http://dresende.github.io/node-orm2/ I used node-orm2 in a couple small apps with great success.


#3

Does anyone have any luck with running ember-data in nodejs env?

I like how ember-data is designed with models, adapters and serialisers. It probably makes sense to have something like ember-data, but for communication with 3rd-party api at the server side.