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
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