This is a modified version of the electron-react-boilerplate.
The only real difference with this version is to the contents of the 'app' itself in how it's scaffolded.
- components self contained with styling, testing and tsx file in one place
- favour scss modules with postcss (for pxToRem) for styling
- layout system added
- couple of generic modules added to start with
- additional examples added, the redux setup updated a little to reflect this
- app can be opened in browser now if desired
Electron React Boilerplate uses Electron, React, Redux, React Router, Webpack and React Hot Loader for rapid application development (HMR).
First, clone the repo via git and install dependencies:
git clone --depth 1 --single-branch https://github.com/aFrontendDev/electron-react.git
your-project-name
cd your-project-name
yarnStart the app in the dev environment. This starts the renderer process in hot-module-replacement mode and starts a webpack dev server that sends hot updates to the renderer process:
yarn devStart the app in production mode:
yarn startJest and Enzyme are the default testing tools in this boilerplate, to run tests:
yarn testTo package apps for the local platform:
yarn packageThis creates a release folder at root which contains the executables.