Name: Electron React Boilerplate
Description: A foundation for scalable desktop apps
License: MIT
Homepage: GitHub Repository
-
Entry Points:
- Customized
main.js
andrenderer.js
files to align with application-specific needs.
- Customized
-
Package Metadata:
- Updated
package.json
with project name, description, and contributors:- Author: Electron React Boilerplate Maintainers
- Contributors: Amila Welihinda (GitHub)
- Updated
-
Electron Configuration:
- Configured
electron-builder
for multi-platform builds (Windows, macOS, Linux). - Added custom installation directories and app icons.
- Configured
-
Styling Updates:
- Integrated SCSS/SASS for modular and maintainable styling.
-
React & Redux:
- Added Redux for efficient state management.
- Refactored React components for improved scalability.
-
API Integration:
- Utilized Axios for seamless interaction with external APIs.
-
Build Optimization:
- Enhanced Webpack settings for faster builds and reduced bundle sizes.
- Implemented production-specific optimizations like tree-shaking and code-splitting.
-
Testing Enhancements:
- Configured Jest and React Testing Library for unit and integration tests.
-
Custom Scripts:
- Added npm scripts for:
- Development (
npm start
) - Production build (
npm run build
) - Testing (
npm test
)
- Development (
- Added npm scripts for:
-
Multi-Platform Build:
- Configured builds for Windows (NSIS), macOS (DMG), and Linux (AppImage).
-
Clone the Repository:
git clone https://github.com/electron-react-boilerplate/electron-react-boilerplate
-
Install Dependencies:
cd electron-react-boilerplate npm install
-
Run in Development Mode:
npm start
-
Lint and Fix Code:
npm run lint:fix
-
Production Build:
npm run build
-
Package Application:
npm run package
- Run Tests:
npm test
- Keywords: Electron, React, TypeScript, SASS, Webpack, Hot Reload
- Documentation: Detailed API and usage instructions available in the repository.
Feel free to adapt and extend this boilerplate for your desktop application needs!