/ember-parse-adapter

An Ember Data Adapter for Parse

Primary LanguageJavaScript

Ember Data Adapter for Parse

An Ember Data Adapter built to use the Parse REST API. This is a full Ember implementation against the Parse REST API without the use of the Parse JavaScript SDK.

Examples

There is an example of all of the features inside the example.html file.

Features

ParseJSONSerializer: Ember Data JSONSerializer
ParseAdapter: Ember Data Adapter
  • Implements the persistence layer to Parse by extending the Ember Data REST Adapter.
ParseModel: Ember Data Model
  • Provides an easy way to setup a Parse object.
ParseUser: Parse User implementation.
  • Login
  • Signup
  • Request password reset

Get Started

You'll want to get an account at Parse. After this you will be provided with three keys:

  • Application ID
  • JavaScript Key
  • REST API Key

You will need each of these to configure the ParseAdapter.

  var App = Ember.Application.create();

  App.ApplicationAdapter = DS.ParseAdapter.extend({
    applicationId: '<YOUR APP ID HERE>',
    restApiId: '<YOUR REST API KEY HERE>',
    javascriptId: '<YOUR JAVASCRIPT KEY HERE>'
  });

Once you have your adapter configured now you can create ParseModels just as you would create DS.Models.

  App.Post = DS.ParseModel.extend({
    title: DS.attr('string'),
    body: DS.attr('string')
  });

Roadmap

  • Parse Roles implementation
  • Parse ACL implementation

Dev Notes

  • To get a build simply grunt. You'll find builds inside the /dist folder.