aor-django-rest-framework
v1.1.4
Published
Django REST Framework client for admin-on-rest
Downloads
8
Readme
django_rest_framework_client
Djang REST Framework client for admin-on-rest
Usage
Install the package from npmjs.com:
npm install aor-django-rest-framework --save
Add these to your App.js
import DjangoRestClient from "aor-django-rest-framework";
const restClient = DjangoRestClient("http://my.domain/api");
const App = () => (
<Admin dashboard={Dashboard} restClient={restClient}>
...
Installation and development
first install npm, and install required packages, build and run tests
npm install
npm run build
npm run test
Travis-ci handles the deployment to npmjs.com from master branch.
To deploy a new version, first bump packages with npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]
.
This will set the correct version to package.json, create a git commit, and set the correct git tag. Merge to master, and Travis will deploy it.