How to Migrate an Electron Application with TypeScript/JavaScript Frontend and Java Backend to Work Offline on a LAN Network?

I’m currently working on an Electron application with a frontend written in TypeScript and JavaScript, and a backend server implemented in Java. The goal is to modify the application so it can function offline within a local area network (LAN), without relying on internet connectivity. all computers also have access to that network and are connected through wire.

Some specific questions I have are:

Data Synchronization: What’s the best approach to ensure that all clients on the LAN can access up-to-date data, considering the application will be offline?

Backend Server Setup: How can I set up the Java backend server so it’s accessible to all users on the LAN?

Network Configuration: Are there particular configurations for Electron or Java to make sure the application communicates efficiently over a LAN?

Database Options: Should I consider a specific type of database or storage solution to ensure reliability and speed within a LAN environment?

Any guidance or examples on similar offline LAN migrations would be really helpful!

Any guidance or examples on similar offline LAN migrations would be really helpful!