I created this boilerplate to start an Electron application using most popular tools:
- electron-forge as base project
- electron-store to be able to persist settings
- electron-log to be able to show and persist logs
- @lpfreelance/electron-bridge to be able to follow best security practices for Electron with easy!
- @timfish/webpack-asset-relocator-loader, fork of Vercel package to be able to include native_modules to the main process that works with Electron.
- Custom hook in the file
forge.config.ts
that run every time tha app is packaged and fix native_modules. (At this time it will install serialport) - React as framework for the UI
- MUI for styling the UI
Moreover the webpack.(main|renderer).config.ts
files have been modified to be able to support electron-bridge (see this)
To use this boilerplate for your next project use the Github UI to "Use as template" or just fork the repo.
- Install package:
yarn
- Generate bridge files from schema:
yarn run generate-schema
- Run dev mode:
yarn start
- Package app:
yarn run package
-
Version 1.0.1:
- Add scoped log to serial