I am trying to implement a very simple and relatively famous, common feature seen in many notes taking apps these days (like Evernote or Simplenote, etc.), but in Javascript, which is:

"Being able to keep a record of any changes in a block of text across different sessions (like through days till a max of, say, 30 days) and then being able to restoring or reverting back to one of the versions anytime."

I have no idea where to begin with this problem and how to approach it. I understand that it is a sort of version control system (like on GitHub, but very simple as compared to it).

I am pretty sure that localstorage and indexeddb would be the key to solving this issue.

How should I approach this problem?

After searching extensively on the Internet, I really couldn't find anything of help. Any tips or leads would be very much appreciated.

0 Answers