ember-parse-adapter-two2.0.0 • Public • Published
Ember Data Adapter for parse-server
If you are not familiarized with the new open source project parse-server, you should visit the project page first.
- Provides the translation of objectId to id for identity mapping.
- Provides encoding of hasMany associations to arrays of Parse Pointer objects.
- Implements the persistence layer to Parse by extending the Ember Data REST Adapter.
- Provides a
sessionTokenproperty which can set a session token.
Is stored at the special user endpoint at parse-server.
- Request password reset
- Request current user
- Provides transforms for date, file and geo types at parse-server.
- The url of your parse-server (is "https://api.parse.com" on Parse.com)
- The URL prefix of your Parse API (is "1" on Parse.com)
- The ID of your application
- The REST API Key of your application (only if you use a Parse.com account)
You will need these to configure the ParseAdapter via entries in the
var ENV =...APP:parseUrl: '<THE URL OF THE PARSE SERVER HERE>'parseNamespace: '<THE URL PREFIX OF THE API HERE>'applicationId: '<YOUR APP ID HERE>'restApiId: '<YOUR REST API KEY HERE>' // (only if you use a Parse.com account);
Any model using this adapter will be stored on Parse. Create models as you would normally:
AppPost = DSModel;
Before publishing your app you should disable REST Push. Parse apps are created with this feature enabled by default. If this feature is enabled anyone with your
Application ID and
REST API Key will be able to send push notifications to your user's devices. Anyone using your app has access your
Application ID and
REST API Key.
To disable REST Push:
- Login to your Parse account.
- Click on your application.
- Go to Settings > Push.
- And disable REST Push.
- It should look like the image below.
git clonethis repository
- Visit your app at http://localhost:4200.
ember try:testallto test your addon against multiple Ember versions)
ember test --server
For more information on using ember-cli, visit http://www.ember-cli.com/.