A boilerplate with zero dependencies other than React. Easy to use with single command run and packaging scripts
- Clone this repository
cd
into the directory and delete git filesrm -rf .git
- Run
npm install
- Run
npm start
to start electron and react concurrently
- Run
npm run package
to compile react, copy files and then package your app - A new
dist
folder will be created in the root of your project containing the executable files - NOTE: add
--mac
to thepostpackage
script besides--win
if you are on a mac computer
electron/
: Code for the main Electron processsrc/react/
: Code for the React renderer processsrc/shared/
: Code shared between React and Electronpackage.json
: Contains scripts for running the app in development, building it, and packaging it for production using electron-builder
Open a new PR to contribute
Original idea by johndyer24
MIT