Lily-Technologies / lily-wallet

The best way to secure your bitcoin.
https://lily-wallet.com
Other
94 stars 15 forks source link

Break app into frontend, backend, and middleware #64

Closed KayBeSee closed 2 years ago

KayBeSee commented 2 years ago

Right now the app is a monolith and the frontend/backends are closely coupled together.

The final result should allow logic to be shared between web and electron and minimal scaffolding have to be added to support both platforms.

Something like:

ipcMain.on('/lightning-account-data', () => {
   const data = getLightningData(args);
   event.reply("/lightning-account-data", data);
})
express.get('/lightning-account-data', () => {
   const data = getLightningData(args);
   reply(data)
})
KayBeSee commented 2 years ago

Closed via 3ea6d2a2e0b16a460fb2bdc2ebef177ebe2929cd