How to build a desktop app from a web app whilst being able to capture the communication with the server?

104 Views Asked by At

I'm trying to transform a web application to a desktop one without rewriting the code. Two solutions I found that seem promising are Qt with WebEngine (WebView) and Electron. The thing is I would like to be able to capture the communication with server, for example database queries and stuff like that and treat it locally. Is that possible using either of that tools? If so do you have any tips on how to go about the issue?

Thanks in advance.

2

There are 2 best solutions below

0
madasionka On BEST ANSWER

Just for future reference I decided on Electron and used onBeforeRequest function to capture the http requests.

0
Rooney On

If you don't have enough time to build a desktop app, I recommend to build hybrid app. (Native App + Web). Use Cache, I am not sure about Web Database.

you can read these..

Web Cache

Web DB (it works on browser like Chrome, Safari, Android Browser...)