Skip to content

JCFerrerG/aor-postgrest-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postgREST Client for admin-on-rest

For using postgREST with admin-on-rest, use the postgrestClient function to convert AOR's REST dialect into one compatible with postgREST.

Installation

npm install aor-postgrest-client --save

Usage

// in src/App.js
import React from 'react';
import { Admin, Resource } from 'admin-on-rest';
import postgrestClient from 'aor-postgrest-client';
import { PostList } from './posts';

const App = () => (
    <Admin restClient={postgrestClient('/mypostgrestendpoint')}>
        <Resource name="posts" list={PostList} />
    </Admin>
);

export default App;

Scripts

command Description
npm run-script build Build process to generate main target 'lib'
npm run-script publish Shortcut that will trigger build before running npm publish

License

This library is licensed under the MIT Licence, and sponsored by tomberek.

About

postREST client for admin-on-rest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.1%
  • Makefile 5.9%