Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tykoth/ra-data-dexie
Experimental React-Admin data provider using Dexie (IndexedDB)
https://github.com/tykoth/ra-data-dexie
dexie dexiejs indexeddb material-ui ra-admin ra-data-dexie react react-admin
Last synced: 2 months ago
JSON representation
Experimental React-Admin data provider using Dexie (IndexedDB)
- Host: GitHub
- URL: https://github.com/tykoth/ra-data-dexie
- Owner: tykoth
- Created: 2019-09-02T14:22:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T23:55:55.000Z (almost 2 years ago)
- Last Synced: 2024-04-23T18:43:11.601Z (8 months ago)
- Topics: dexie, dexiejs, indexeddb, material-ui, ra-admin, ra-data-dexie, react, react-admin
- Language: JavaScript
- Homepage: https://tykoth.github.io/react-admin-experiments
- Size: 639 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ra-data-dexie
## Instalation
```sh
npm install --save ra-data-dexie
```
or
```sh
yarn add ra-data-dexie
```## Usage
```jsimport React, { Component } from "react";
import ReactDOM from 'react-dom';
import { Admin, Resource, ListGuesser, ShowGuesser, EditGuesser } from "react-admin";
import dexieDataProviter from 'ra-data-dexie';const dataProvider = dexieDataProvider(
'DATABASE_NAME',
1, // database version
{
"tableName":"++id,name,text,date,bool"
}
);class App extends Component {
render() {
return (
);
}
}ReactDOM.render(, document.getElementById('app'));
```