DexUtils
A human usable interface for managing and navigating IndexedDB
Prerequisites
Optional
Installing
npm install dex-utils
yarn add dex-utils
And then in your router
<Route path="<path/for/utils" component=DexUtils> // OR <Route path="<path/>for/utils" render= <DexUtils ...props dbNames=...>>
Use
DexUtils
has to be attached to a route at the base of your project. An optional dbNames
prop can be passed with a list of database names.
Props
[dbNames] - optional
If you are not already using Dexie
, you will have to tell the plug which databases it should be looking for. You can do this by passing a list of strings to the dbNames
prop. If you are using Dexie
, the application is smart enough to find any databases you've already instantiated.
Example
// index.js - entry point;;;; ;; ReactDOM;
To-Do List
[x] Get databases not created with Dexie?
[ ] Demo
[ ] Tests for both the IndexedDB interface and components
[ ] JSDocs
[ ] More features?