React Admin DataProvider with support for micro-services architecture.
You can install this library via NPM or YARN.
npm i @blackbox-vision/ra-data-microservices
yarn add @blackbox-vision/ra-data-microservices
You use react-admin for building a frontend to manage CRUD resources, and you have a micro-service architecture for your services.
import React from 'react';
import { Admin, Resource } from 'react-admin';
import { microServicesProvider } from '@blackbox-vision/ra-data-microservices';
import { PostList } from './posts';
const dataProvider = microServicesProvider({ posts: 'http://posts.api.url' });
const App = () => (
<Admin dataProvider={dataProvider}>
<Resource name="posts" list={PostList} />
</Admin>
);
export default App;
import React from 'react';
import { Admin, Resource } from 'react-admin';
import { microServicesProvider } from '@blackbox-vision/ra-data-microservices';
import { PostList } from './posts';
const customHttpClient = (url, options = {}) => {};
const dataProvider = microServicesProvider(
{ posts: 'http://posts.api.url' },
customHttpClient,
);
const App = () => (
<Admin dataProvider={dataProvider}>
<Resource name="posts" list={PostList} />
</Admin>
);
export default App;
Please, open an issue following one of the issues templates. We will do our best to fix them.
If you want to contribute to this project see contributing for more information.
Distributed under the MIT license. See LICENSE for more information.