I seek to save user data for my electron.js app. The app has a graph with adjustable values, which disappear when relaunching the app. Demo: https://puu.sh/Bx5Or/ffb0382d0c.gif
How do I preserve these values? Can (and should) it be done with SQL?
You have a lot of modules to store data in an Electron app :
I would suggest nedb which is pure JS and cross platform compatible. The simplest is localStorage, which is browser native. Or more simply, you can read/write data in a JSON file.
So, in your case, when the values are changed, save the data. On start, get them from the database and put them in your adjustable values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With