vue版cnode社区2.0
A Vue.js project
vue-cnode2.0是基于vue、vue-router、vuex、axios、es6开发,使用vue-cli构建工具编译打包项目,实现了简易版的社区。
│ .babelrc // ES6语法编译配置
│ .gitignore // git的文件过滤配置
│ package.json // 项目相关信息配置,通过执行 npm init 命令创建
│ README.md // 项目说明
│
├─build // webpack配置项
│
├─src // 项目主文件夹
│ │ App.vue // 页面入口文件
│ │ main.js // 程序入口文件,加载各种公共组件
│ │
│ ├─assets // 静态资源,图片、公用样式、插件
│ ├─components // 公共组件
│ ├─fetch // 请求api
│ ├─views // 页面组件
│ ├─router // 页面路由配置
| |─util // 公用方法 (过滤器)
│ └─vuex // vuex的状态管理
│
└─static
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For detailed explanation on how things work, checkout the guide and docs for vue-loader.