skb1129 / electron-react-boilerplate

Minimal boilerplate to create a desktop app using Electron and React.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Electron React Boilerplate

A minimal boilerplate to start developing desktop apps using Electron and React.

Getting Started

These instructions will help you run a copy of this project on your system.

Requirements

You need the following application installed on your system to run this project.

  • node ~12.18.1
  • yarn ~1.22.0

Installation

You can install the node dependencies required by the application with the following command:

yarn install

Development

To start the application in development mode run the following commands on separate terminal sessions.

yarn start:renderer

This will start the renderer webpack-dev-server application.

yarn start:main

This will start the main electron application.

Production

Run the following command to start the application in production mode.

yarn start

Bundling

Run the following command to package the application.

yarn package:macos     # MacOS
yarn package:windows   # Windows
yarn package:linux     # Linux
yarn package           # All platforms

The build executables will be available in the dist/ directory.

Build With

  • React - The frontend library used
  • Electron - Cross platform desktop app framework
  • Webpack - Asset bundling tool

Authors

  • Surya Kant Bansal - Initial work - skb1129

About

Minimal boilerplate to create a desktop app using Electron and React.

License:MIT License


Languages

Language:JavaScript 41.0%Language:TypeScript 40.1%Language:HTML 14.6%Language:SCSS 4.3%