/electron-react-lex

The program for learning foreign words

Primary LanguageJavaScriptMIT LicenseMIT

electron-react-lex

The program for learning foreign words.

Screenshots

Install

  • Note: requires a node version >= 7 and an npm version >= 4.
  • If you have installation or compilation issues with this project, please see our debugging guide

First, clone the repo via git:

git clone https://github.com/denq/electron-react-lex.git

And then install dependencies with yarn.

$ cd electron-react-lex
$ yarn

Note: If you can't use yarn for some reason, try npm install.

Run

Start the app in the dev environment. This starts the renderer process in hot-module-replacement mode and starts a server that sends hot updates to the renderer process:

$ npm run dev

Run these two commands simultaneously in different console tabs:

$ npm run start-renderer-dev
$ npm run start-main-dev

Packaging

To package apps for the local platform:

$ npm run package

For win:

$ npm run package -- --win

To package apps for all platforms:

First, refer to Multi Platform Build for dependencies.

Then,

$ npm run package-all

To package apps with options:

$ npm run package -- --[option]