DEV Community

loading...

How would you handle cloud syncing data for an Electron app?

quinncuatro profile image Henry Quinn ・1 min read

So I'm going to be building an open source markdown-editor-of-my-dreams for Hacktoberfest and one of the things I want it to do is handle cloud syncing note data across multiple platforms.

App is going to be JavaScript, Node, Electron.

I'm not sure how to handle the native cloud syncing, though.

My gut reaction was to just toss it all in Firebase.

I think a better approach would be to treat it like a Progressive Web App and use service workers to keep track of local offline changes and update a SQL database whenever a user reconnects to the internet.

How would you handle this?

Discussion

pic
Editor guide