Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Data provider which integrates React Admin with NestJS CRUD library

License

Notifications You must be signed in to change notification settings

ababra/ra-data-nestjsx-crud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nest.js API Data Provider For React-Admin

ra-data-nestjsx-crud is a fork of @FusionWorks/ra-data-nest-crud.

ra-data-nestjsx-crud is a data-provider for react-admin, that has been designed to make easier communication between a frontend application built with react-admin, and a backend application built with nestjs framework and nestjsx/crud.

Install

Using npm: npm i ra-data-nestjsx-crud

Using yarn: yarn add ra-data-nestjsx-crud

Usage

// in app.jsx file

import React from 'react';
import { Admin, Resource, ShowGuesser } from 'react-admin';
import crudProvider from 'ra-data-nestjsx-crud'
import { UsersList, UserCreate, UserEdit } from './Users'

const dataProvider = crudProvider('http://localhost:3000');
const App = () => (
  <Admin dataProvider={dataProvider}>
    <Resource name="users" list={UsersList} create={UserCreate} edit={UserEdit} show={ShowGuesser} />
  </Admin>
);
export default App;

About

Data provider which integrates React Admin with NestJS CRUD library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.9%
  • TypeScript 47.1%