Files
electron-egg/README.md
gaoshuaixing 0d856876c0 1
2021-01-14 18:30:49 +08:00

96 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# electron-egg
一个简单、快速、功能丰富的跨平台桌面软件开发框架。
[教程文档](https://www.yuque.com/u34495/mivcfg/xnhmms)
## 特性
1. 直接打包成windows版、Mac版、Linux版或者以web网站运行。
2. 可以用服务端的开发思维,来编写桌面软件。
3. 也可以用前端来开发数据服务请求外部api即可。
4. 服务端的技术场景几乎都可以使用,如:路由、中间件、控制器、服务、定时任务、队列、插件等。
5. 桌面软件常见功能后续逐步集成并完善或提供demo。
6. 软件自动更新。
## 默认UI
- 使用vue编写经典三栏样式可自定义
![](./build/img/upload_pic.png)
![](./build/img/open_dir.png)
## 开始使用
1. 下载
```
# gitee
git clone https://gitee.com/wallace5303/electron-egg.git
# github
git clone https://github.com/wallace5303/electron-egg.git
```
2. 安装
```
# 进入目录 ./electron-egg/
# 提升安装速度,使用国内镜像
npm config set registry https://registry.npm.taobao.org
npm install
```
3. 常用命令
```
# 开发者模式
npm run dev
# 生产者模式
npm run start
# 打包-windows版本
npm run build-w
# 打包-mac版本
npm run build-m
# 打包-linux版本
npm run build-l
# web运行-开发模式
npm run web-dev
# web运行-生产者模式-启动
npm run web-start
# web运行-生产者模式-停止
npm run web-stop
```
## 项目案例
1. [免费手机号-云短信](https://github.com/wallace5303/tmpPhone)
![](./build/img/tmp-phone-home.png)
2. [网站助手-已开源](https://gitee.com/wallace5303/aweb-helper)
web版&客户端
![](https://kaka996.coding.net/p/resource/d/tx-resource/git/raw/master/img/box/js.gif)
## 交流
1. qq群735532437
2. 把一些常用或者重复的功能,做成桌面小工具,给自己或者别人用,确实省了不少时间^_^
## 进行中功能
1. 软件自动更新(已完成)
2. 数据本地存储(已完成)
3. mac版功能兼容已完成
4. 以web版运行已完成
5. 默认UI已完成
6. egg与electron通信已完成
7. 打开文件功能demo已完成
8. 上传文件到sm图床demo已完成
9. 开发模式实时渲染页面(已完成)
## 欢迎star