Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.3 KB

README.md

File metadata and controls

35 lines (21 loc) · 1.3 KB

Build Status Coverage Status

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.