electron-egg
A fast and feature-rich desktop software development framework based on electron and egg.js
characteristic
- You can use server-side development thinking to write desktop software
- You can also use the front-end to develop, the data service can request an external api
- Almost all technical scenarios on the server side can be used, such as routing, middleware, controllers, services, timed tasks, queues, plug-ins, etc.
- Common functions of desktop software will be gradually integrated and improved or demo provided.
start using
-
download
# gitee git clone https://gitee.com/wallace5303/electron-egg.git # github git clone https://github.com/wallace5303/electron-egg.git
-
start up
# 进入目录 ./electron-egg/ npm install npm run dev
-
Common commands
# 开发者模式 npm run dev # 生产者模式 npm run start # 打包 (windows版本) npm run build-w # 打包 (mac版本) npm run build-m # 打包 (linux版本) npm run build-l
Log
-
electron日志:./logs/main.log egg日志:./logs/
Project structure
-
# electron-egg ./app -- egg框架 ./build -- 打包用户用到的资源,包含logo和可以定制化安装的脚步 ./config -- 配置文件,区分不同环境 ./logs -- 日志,包含electron日志与egg框架日志 ./node_modules -- 包 ./out -- 打包后的执行程序 ./run -- 运行时缓存文件 ./storage -- 数据目录 ./app.js -- egg入口文件 ./main.js -- electron启动文件 ./package.js -- package
Project cases
In progress function
- Automatic software update
- Data local storage
- Mac version function compatible
- Common function demo
Gitee address
Address: https://gitee.com/wallace5303/electron-egg