Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vazra/electron-react-ts-rxdb-realm-sqlite
Demo of Native Databases with Electron and ReactJS. Realm, SQLite and RxDB ( with LevelDB/IndexedDB/InMemory adapters)
https://github.com/vazra/electron-react-ts-rxdb-realm-sqlite
database electron indexeddb leveldb native-module react realm rxdb sqlite typescript
Last synced: 4 days ago
JSON representation
Demo of Native Databases with Electron and ReactJS. Realm, SQLite and RxDB ( with LevelDB/IndexedDB/InMemory adapters)
- Host: GitHub
- URL: https://github.com/vazra/electron-react-ts-rxdb-realm-sqlite
- Owner: vazra
- Created: 2020-06-17T06:53:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T07:03:37.000Z (over 1 year ago)
- Last Synced: 2024-05-27T12:12:14.909Z (6 months ago)
- Topics: database, electron, indexeddb, leveldb, native-module, react, realm, rxdb, sqlite, typescript
- Language: TypeScript
- Homepage:
- Size: 2.18 MB
- Stars: 27
- Watchers: 2
- Forks: 3
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
Awesome Lists containing this project
README
# Electron React (Typescript) with RxDB, Realm & SQLite
> 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`](https://github.com/vazra/electron-webpack-typescript-react) which is based in `electron-webpack`.
- Use of [`webpack-dev-server`](https://github.com/webpack/webpack-dev-server) for development
- HMR for both `renderer` and `main` processes
- Use of [`babel-preset-env`](https://github.com/babel/babel-preset-env) that is automatically configured based on your `electron` version
- Use of [`electron-builder`](https://github.com/electron-userland/electron-builder) to package and build a distributable electron applicationMake sure to check out [`electron-webpack`'s documentation](https://webpack.electron.build/) for more details.
- Implemented RxDB with native adapters of LevelDB & NodeSQL
- Implemented native [Realm database](https://github.com/realm/realm-js)
- Implemented native [SQLite3 database](https://github.com/mapbox/node-sqlite3)## Getting Started
Simply fork/clone this repository, install dependencies, and try `yarn dev`.
```bash
# 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](https://yarnpkg.com/) package manager is **strongly** recommended, as opposed to using `npm`.
## FAQ
1. 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`](https://github.com/vazra/electron-webpack-typescript-react) 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](https://github.com/vazra/electron-react-ts-rxdb-realm-sqlite/issues)
Pull requests are also invited. :rocket: