使用electron-vue这个脚手架,快速地将我原先web项目的代码迁移过来复用。
# install dependencies
npm install
# serve with hot reload at localhost:9080
npm run dev
# build electron application for production
npm run build
This project was generated with electron-vue@7c4e3e9 using vue-cli. Documentation about the original structure can be found here.
简单展示其中一个页面,具体详情请看https://github.com/aermin/vue-chat
├── LICENSE
├── README.md
├── appveyor.yml
├── build
│ └── icons
├── dist
│ ├── electron
│ └── web
├── node_modules
├── package-lock.json
├── package.json
├── src
│ ├── index.ejs
│ ├── main //主进程
│ │ ├── index.dev.js
│ │ └── index.js
│ └── renderer //渲染进程
│ ├── App.vue
│ ├── assets
│ ├── components
│ ├── main.js
│ ├── pages
│ ├── router
│ ├── store
│ └── utils
├── static
└── yarn.lock
本项目只有前端代码,使用我线上的后端接口,接口仅供学习测试使用(弱鸡学生机请勿恶搞😂)