README_zh.md
1.2 KB
Electron-Vue-template
这是一个基于electron的vue最基本的模板,其中前端技术栈则用到vue全家桶,axios作为http请求,而本地数据库则是nedb。
如何安装
# 首先全局安装nrm
npm i -g nrm
# 然后使用nrm切换为淘宝源,或者你已经切换了npm的源也是可以的,强烈不建议使用cnpm如果你不想看到什么奇奇怪怪的爆红问题
nrm ls
nrm use taobao
# 安装依赖
npm install
# 启动之后,会在9080端口监听,如要修改则请到.electron-vue文件夹下的dev-runner.js中的第76行位置更改即可,记得更改后重新运行run dev
npm run dev
# build命令在不同系统环境中,需要的的不一样,Windows中需要vs协助。
npm run build
# run unit & end-to-end tests
npm test
This project was generated with electron-vue@8fae476 using vue-cli. Documentation about the original structure can be found here.