# cnode-electron **Repository Path**: chinasb/cnode-electron ## Basic Information - **Project Name**: cnode-electron - **Description**: 用electron 结合 react 制作的node中文社区客户端 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 31 - **Created**: 2016-05-03 - **Last Updated**: 2020-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cnode-electron 用electron 结合 react 以及[material-ui ](http://www.material-ui.com/#/components/grid-list)
根据node中文社区提供的api制作的node中文社区客户端
![Alt text](https://github.com/wq123456/cnode-electron/blob/master/preview/1.png) ![Alt text](https://github.com/wq123456/cnode-electron/blob/master/preview/2.png) ![Alt text](https://github.com/wq123456/cnode-electron/blob/master/preview/3.png) ![Alt text](https://github.com/wq123456/cnode-electron/blob/master/preview/4.png) ![Alt text](https://github.com/wq123456/cnode-electron/blob/master/preview/5.png) ![Alt text](https://github.com/wq123456/cnode-electron/blob/master/preview/6.png) [windows 64版本下载 ](http://pan.baidu.com/s/1sl7Ue7N)
[mac 64版本下载 ](http://pan.baidu.com/s/1hrORjSg)
使用方法:
浏览器开发
1 git clone https://github.com/wq123456/cnode-electron.git
2 cd cnode-electron & npm install
3 node server.js
4 打开浏览器 http://127.0.0.1:3000
electron 预览
1 注释掉 app/store/configureStore.js 里面的 devtools()
2 运行 npm run buildapp 重新构建app.js
3 npm start 启动 electron
发布:
1 从node_modules/electron-prebuild/dist 中复制Electron.app到任意目录
2 mac上显示包内容,找到Resources 文件,创建 app文件,然后把css ,index.html,sound,main.js,SYS_Channel.js,author.json,app.js复制到app文件中退出。(windows也有resources)
3 双击Elecron.app 即可看到效果。然后可以自行更改文件名图标等
ps: 官方的asar方法打包限制太多,不好使。 npm install 安装electron-prebuilt可能会失败,建议单独对其进行安装