Builds apps using electron-react-starter as a base.
Option 1 -- Global installation
Install the CLI tool:
npm i -g create-electron-react-app
Run the tool:
create-electron-react-app
Option 2 -- Using npx
(Requires NPM 5+)
Install and run the tool:
npx create-electron-react-app
Generated applications will come with a configuration ready to be used with:
You will be prompted for a few pieces of information:
app name
(Required)
- This is stored in the generated
package.json
as the"appName"
property. It can be changed there at any time. - In MacOS builds, it is the name of the
.app
package, the name of the app as it appears in the menu bar and Activity Monitor, and by default the title of the main window. - In windows builds, it is the name of the
.exe
file, the name that appears in Task Manager, and by default the title of the main window.
directory name
(Required)
- This is the name of the directory created that the app will be generated inside of.
- This can only consist of lowercase letters, numbers, dashes, and underscores.
- It is also used as the
"name"
property in the generatedpackage.json
app identifier
(Required)
- This is stored in the generated
package.json
as the"identifier"
property. It can be changed there at any time. - In MacOS builds, this is used as the unique identifier for the package.
- In windows builds, this serves no purpose.
description
(Optional)
- This is used as the
"description"
property in the generatedpackage.json
git repository
(Optional)
- This is used in the
"repository"
,"bugs"
, and"homepage"
properties of the generatedpackage.json
author
(Optional)
- This is used in the
"author"
property of the generatedpackage.json
lisence
(Optional)
- This is used in the
"lisence"
property of the generatedpackage.json