Using server-based DBs in Electron apps?


#1

Hey guys!

I am planning to use Electron to build a desktop app, and I plan to use a server-based database like Postgres or MongoDB with the app. I will be storing gigabytes of data in the database, so using something like WebSQL, localStorage, etc. is out of the question. I also want to use other server-based products to power the app, but let us keep this question limited to databases.

How do you generally store such huge amounts of data in an Electron app? I think it should be noted that this data will be user-created, and the app will be offline, so it isn’t possible to store this data anywhere but on the user’s computer. Also, I do not want to limit myself to a single platform by doing this, so a cross-platform approach would be great.

Hope you guys can point me in the right direction.

Electro