beorn / electron-with-server-example

An example Electron app with a backend server all wired up via IPC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

electron-with-server-example

Updated version @jlongster's example Electron app with server process as Node or background window with some improvements (see PR#8):

  • updated to latest versions of all packages (as of 2020-11-20), including Electorn 11
  • use of contextIsolation, contextBridge, and preload script to create safer environment for the client code
  • various refactorings

Two versions are provided:

The electron-forge version utilizies the webpack-plugin's ability to produce different bundles for multiple node process (main and server-as-process), multiple renderer processes (client and server-as-window) and the preload scripts (client contextBridge) - see forge config, renderer config, and main config.

About

An example Electron app with a backend server all wired up via IPC


Languages

Language:TypeScript 71.6%Language:JavaScript 23.9%Language:HTML 4.6%