thom-nic / electron-demo

A simple Electron (Atom shell) demo app.
27 stars 3 forks source link

Location of the NeDB data store file? #3

Open don-smith opened 9 years ago

don-smith commented 9 years ago

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!

guumaster commented 9 years ago

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.