• Stars
    star
    196
  • Rank 198,553 (Top 4 %)
  • Language
    JavaScript
  • Created almost 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Electron React Boilerplate uses Electron, React, React-Redux,React Router,antd, Webpack

This is a simple boilerplate to get up and running with Electron and React(Axios,React-Redux,React-Router,antd).

Electron-React

Fork from electron-vue and replace vue with react

  • An electron-react project
  • Basic project structure with a single package.json setup
  • Ready to use React plugins (axios, react-router, redux,antd)*
  • Installed react-devtools and redux-devtools and devtron tools for development
  • Ability to easily package your electron app using electron-builder*
  • Ability to produce web output for browsers
  • Use of webpack with Hot Module Replacement
  • Process restarting when working in main process

Install

git clone https://github.com/1046617651/electron-react-admin.git

start server

cd server
npm install
npm run start

start Electron-React

cd client
npm install
npm run dev

login page

{
    "username":"jack",
    "password":"123456"
}

Demo

demo

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:9081
npm run dev

# build electron application for production
npm run build

# lint all JS/JSX component files in `src/`
npm run lint