electron-demo icon indicating copy to clipboard operation
electron-demo copied to clipboard

Location of the NeDB data store file?

Open don-smith opened this issue 9 years ago • 1 comments

Hey Thom, I hope you don't mind me posting here even though this isn't at all an issue with your demo.

I'm using this repo as a starter for my own demo that uses React instead of Mithril. I noticed you have a dependency on NeDB, which seems like a great choice for an Electron app. I am successfully saving and retrieving records but (and here's the real embarrassing bit) I can't locate the data store file to save my life. I've tried both relative and absolute paths, as well as path.join(process.cwd(), 'store.db'), and confirmed the records are in fact being saved across app restarts. But I can't find the actual file anywhere.

I mainly just want to know where it's being created for deployment reasons. I suspect it has something to do with how Electron is running (I'm just using npm start for the moment). Any help or ideas you have would be greatly appreciated. Much thanks!

don-smith avatar May 11 '15 12:05 don-smith

Check the app's localStorage (open devtools and go to Resources > Local Storage).

I'm also to save NeDB to file with no success either.

guumaster avatar Sep 19 '15 12:09 guumaster