分享一个用 ThinkJS3+Vue.js2写的博客程序
发布于 7 年前 作者 eyblog 3975 次浏览 来自 分享

github:https://github.com/lscho/ThinkJS-Vue.js-blog demo:http://demo.lscho.com/

结构

|-client 前端
|-server 后端

依赖

服务端

  "dependencies": {
    "think-logger3": "^1.0.0",
    "think-model": "^1.0.0",
    "think-model-mysql": "^1.0.0",
    "think-session": "^1.0.0",
    "think-session-jwt": "^1.0.8",
    "think-view": "^1.0.11",
    "thinkjs": "^3.0.0"
  }

前端

  "dependencies": {
    "axios": "^0.17.0",
    "iview": "^2.8.0",
    "mavon-editor": "^2.4.13",
    "vue": "^2.5.2",
    "vue-axios": "^2.0.2",
    "vue-router": "^3.0.1",
    "vuex": "^3.0.0",
    "vuex-router-sync": "^5.0.0"
  }

安装

开发

导入sql,修改配置中 mysql 部分,启动服务

# 启动后台服务
cd ./server
npm start
# 启动前台服务
cd ./client
npm start

部署

# 编译
cd ./client
npm run build

将 server 文件夹上传至服务器,参考nginx.conf进行配置

其他

很多写的不合理的地方,求大佬指点

回到顶部