Realm-js: Electron Support

Created on 20 Mar 2017  路  9Comments  路  Source: realm/realm-js

In order to properly support Electron, we need a couple of things

  • [ ] pre-gyp binaries
  • [x] Test harness (#752)
  • [ ] Customizable folder for internal realms (#818)
T-Feature

Most helpful comment

Is there any progress concerning this?

All 9 comments

If you need a boilerplate check this out:

https://github.com/mbalex99/realm-electron

Just npm install then start the electron app. No global dependencies are needed.

Is there any progress concerning this?

It would be awesome if realmjs can be supported & packaged with electron app. Waiting for it. Thank you..

+1 for this feature! We are releasing an offline first desktop app in April so hanging out for this!

+1

Agreed. This would be a great feature!

Hey all

@bigfish24 published a blog post about this. https://blog.realm.io/native-performance-electron-realm/

Key take away on support:

While Electron works great for our use in Realm Studio, we haven鈥檛 yet tested it out in other use cases and are therefore not fully ready to offer the same level of support as for our other supported products. We hope the community is interested in stepping in and help test and support this area going forward

Go and try it out, understand our level of support is really really early, and please make pull requests. It's a community effort!

If you're interested here are some bare bone examples of using React + Realm + Electron:
https://github.com/realm/electron-react-samples

@mbalex99 Did you face this issue:
ERROR in ./node_modules/realm/lib/browser/index.js Module not found: Error: Can't resolve 'react-native' in '/Volumes/Others/Project/realm-exporter/node_modules/realm/lib/browser'.

Please provide input @ #1060

As mentioned earlier, we do not support Electron. Realm Studio is an Electron app, and you are welcome to see how we are using Realm JS and Electron together.

Was this page helpful?
0 / 5 - 0 ratings