craigteegarden / ember-data-django-rest-adapter

An ember-data adapter for django web applications powered by the django-rest-framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ember-data-django-rest-adapter

Build Status

This package enables you to build modern web applications using Ember.js and Django REST Framework. For detailed information on installing and using the adapter, see the wiki documentation.

Community

Installing

The adapter is packaged separately as an Ember CLI add-on. Installation is very simple:

npm i --save-dev ember-django-adapter

and set the API_HOST and API_NAMESPACE configuration variables in config/environment.js, e.g.:

if (environment === 'development') {
  ENV.APP.API_HOST = 'http://localhost:8000';
  ENV.APP.API_NAMESPACE = 'api';
}
if (environment === 'production') {
  ENV.APP.API_HOST = 'https://api.myproject.com';
  ENV.APP.API_NAMESPACE = 'v2';
}

See the wiki documentation for additional installation instructions, including how to use the adapter with vanilla ember (without using ember-cli).

Pending Issues

  • Async belongsTo/hasMany requires a pull-request be merged into ember-data core (#63)

  • Pagination is not yet supported (#80)

Credits

I took a large part of this project (including the motivation) from @escalant3 and his tastypie adapter.

Special thanks to all contributors!

License

Copyright © 2014 Toran Billups http://toranbillups.com

Licensed under the MIT License

About

An ember-data adapter for django web applications powered by the django-rest-framework

License:MIT License


Languages

Language:JavaScript 100.0%