项目作者: saisandeepvaddi

项目描述 :
Create electron apps with React and Redux with no boring stuff
高级语言: JavaScript
项目地址: git://github.com/saisandeepvaddi/electron-react-redux-boilerplate.git
创建时间: 2017-07-04T22:04:11Z
项目社区:https://github.com/saisandeepvaddi/electron-react-redux-boilerplate

开源协议:MIT License

下载


electron-react-redux-boilerplate

Electron boilerplate with react and redux pre-configured

NPM CLI App

This boilerplate can be installed via npm. Skip to manual if you want to clone app from repo yourself.

  1. yarn global add electron-react-redux-boilerplate
  2. (or)
  3. npm i -g electron-react-redux-boilerplate
  • Create Project and install dependencies
  1. electron-react-redux-boilerplate <project-name>
  2. cd <project-name>
  3. npm install (or) yarn install

What is pre-configured

  • Webpack
  • Basic Redux boilerplate
  • React Dev Tools
  • Redux Dev Tools
  • Persistence storage with electron-settings. Can be disabled easily if not needed. Check comments in the reducer file in renderer/reducers/index.js

Install

  • Install Electron
  1. yarn global add electron
  • Clone this repository
  1. git clone https://github.com/saisandeepvaddi/electron-react-redux-boilerplate.git
  • CD to the cloned directory and install dependencies.
  1. cd electron-react-redux-boilerplate
  2. yarn install
  • Have two terminals opened. One for Webpack build. Another for Electron
  1. terminal_1> yarn webpack:dev
  2. terminal_2> yarn start
  • React and Redux developer tools are included. They will be automatically installed on application run. Redux Dev Tools will be attached to store upon running webpack. Make sure to remove or comment out following line in main/app.js in production so that you don’t install dev tools extensions in production.
  1. // Line 29
  2. installDevToolsExtensions();
  • Devtron is included. Run the following in application’s console if you need it.
  1. require('devtron').install()

License

MIT - Sai Sandeep Vaddi