Demo of Native Databases with Electron and ReactJS. Realm, SQLite and RxDB ( with LevelDB/IndexedDB/InMemory adapters)
Demo of Native Databases with Electron and ReactJS. Realm, SQLite and RxDB ( with LevelDB/IndexedDB/InMemory adapters)
The electron & react part is bootstraped with electron-webpack-typescript-react boilerplate
which is based in electron-webpack
.
webpack-dev-server
for developmentrenderer
and main
processesbabel-preset-env
that is automatically configured based on your electron
versionelectron-builder
to package and build a distributable electron applicationMake sure to check out electron-webpack
's documentation for more details.
Implemented RxDB with native adapters of LevelDB & NodeSQL
Implemented native Realm database
Implemented native SQLite3 database
Simply fork/clone this repository, install dependencies, and try yarn dev
.
# clone thee repo
mkdir electron-react-dbs && cd electron-react-dbs
git clone https://github.com/vazra/electron-react-ts-rxdb-realm-sqlite.git
cd electron-react-dbs
# install dependencies
yarn
# run in dev mode
yarn dev
You will be able to tryout all the databases available.
The use of the yarn package manager is strongly recommended, as opposed to using npm
.
Can I use this as a boilerplate for my electron-react app with native databases
Ans. Yes, you can. this project itself is bootstrapped with electron-react boilerplate
You can either take it as the base project or fork this repo and remove unwanted db codes. The code is structured in such a way that any db code can be removed without much effort.
For any bugs or requests create issues here
Pull requests are also invited. :rocket: