项目作者: CodeGather

项目描述 :
vue2-koa2-mongodb搭建的博客
高级语言: JavaScript
项目地址: git://github.com/CodeGather/vue2-koa2-mongodb.git
创建时间: 2018-08-10T02:27:56Z
项目社区:https://github.com/CodeGather/vue2-koa2-mongodb

开源协议:MIT License

下载


vue2-koa2-mongodb

vue2-koa2-mongodb搭建的博客

  1. #搭建流程
  2. #安装koa-generator
  3. npm install -g koa-generator
  4. #先创建一个文件夹然后进入文件夹并在当前文件夹下生成项目
  5. koa2 .
  6. #安装依赖
  7. npm install
  8. #安装进程守护
  9. npm install -g pm2
  10. #使用pm2开启服务
  11. pm2 start ./bin/www
  12. #报错信息解决办法
  13. ChromeDriver installation failed Error with http(s) request: Error: read ETIMEDOUT
  14. #再次执行后台服务搭建完成
  15. npm install

前台页面搭建步骤

  1. # install dependencies
  2. npm install
  3. # serve with hot reload at localhost:8080
  4. npm run dev
  5. # build for production with minification
  6. npm run build
  7. # build for production and view the bundle analyzer report
  8. npm run build --report
  9. # run unit tests
  10. npm run unit
  11. # run e2e tests
  12. npm run e2e
  13. # run all tests
  14. npm test