electron-egg 1.0.0 released, a fast desktop software development framework

electron-egg

A fast and feature-rich desktop software development framework based on electron and egg.js

characteristic

  1. You can use server-side development thinking to write desktop software
  2. You can also use the front-end to develop, the data service can request an external api
  3. Almost all technical scenarios on the server side can be used, such as routing, middleware, controllers, services, timed tasks, queues, plug-ins, etc.
  4. Common functions of desktop software will be gradually integrated and improved or demo provided.

start using

  1. download

    # gitee
    git clone https://gitee.com/wallace5303/electron-egg.git
    # github
    git clone https://github.com/wallace5303/electron-egg.git
    
  2. start up

    # 进入目录 ./electron-egg/
    npm install
    npm run dev
    
  3. Common commands

    # 开发者模式
    npm run dev
    # 生产者模式
    npm run start
    # 打包 (windows版本)
    npm run build-w
    # 打包 (mac版本)
    npm run build-m
    # 打包 (linux版本)
    npm run build-l
    

Log

  1. electron日志:./logs/main.log
    egg日志:./logs/
    

Project structure

  1. # 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

  1. URL management master experience

In progress function

  1. Automatic software update
  2. Data local storage
  3. Mac version function compatible
  4. Common function demo

Gitee address

Address: https://gitee.com/wallace5303/electron-egg

 

 

Guess you like

Origin www.oschina.net/news/119655/electron-egg-1-0-0-released