Skip to content

Latest commit

 

History

History
95 lines (63 loc) · 2.82 KB

README.md

File metadata and controls

95 lines (63 loc) · 2.82 KB

END OF LIFE

This package has reached EOL and is no longer supported.

For Ember + Django REST Framework projects, use Ember CLI and Ember Django Adapter.


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