Skip to content

rlopes/ember-share

 
 

Repository files navigation

EmberShare

EmberShare is an Ember persistence library that utilizes ShareJS, a robust Operational Transforms backend server. It takes care of keeping models consistent, in addition to providing collaborative editing capabilities.

Building:

grunt build-release

How to use:

  • Include the the version of the library most suitable for your project from the /dist forlder
  • Inject the store into the application
App.initializer({
  name: 'injectStore',
  initialize: function(container, application) {
	application.register('store:main',EmberShare.Store);
    application.inject('controller', 'store', 'store:main');
    application.inject('route', 'store', 'store:main');
  }
});
  • For your models you can extend either ShareProxy or ShareArray.
var ItemModel = EmberShare.ShareProxy.extend({
	id: null	// only add id or any non-persistant properties
});

Testing:

grunt test         # headless testing

Dependencies:

  • ShareJS
  • BrowserChannel or Primus

About

Ember persistence and collaboration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published