GithubHelp home page GithubHelp logo

ifcheung2012 / cnode-electron Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hanxie-crypto/cnode-electron

0.0 1.0 0.0 2.85 MB

用electron 结合 react 制作的node中文社区客户端

License: Other

JavaScript 99.29% CSS 0.69% HTML 0.03%

cnode-electron's Introduction

cnode-electron

用electron 结合 react 以及material-ui
根据node中文社区提供的api制作的node中文社区客户端

Alt text Alt text Alt text Alt text Alt text Alt text

windows 64版本下载
mac 64版本下载
使用方法:
浏览器开发
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可能会失败,建议单独对其进行安装

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.