HTML5 supports online web storage which can help in making our website to work offline. But, how can one share data between systems that are connected through LAN when offline?
The requirement is
:
If offline, there will be a centralised system, through which all the systems of a particular group will be connected. Any update on one system will be reflected in all the systems in that group. When the centralised system go online, the data will be synced with a remote mysql DB
.
And if online, all system will update to the remote mysql DB
directly and hence always in sync.
How to get started for such a system?
You can't. This isn't a thing that HTML5 applications can do.
Specifically, there is no way for such an application to "discover" other instances of that application on the network, or to communicate with them, while offline.
Communicating with the "centralized system" you're describing in your question would require your application to be online. And if you're able to do that, the application doesn't need to operate in that fashion anyways!