Skip to content

leyou319/vue-cnode2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-cnode2.0

A Vue.js project

关于项目

vue-cnode2.0是基于vue、vue-router、vuex、axios、es6开发,使用vue-cli构建工具编译打包项目,实现了简易版的社区。

实现的功能

1.登录

2.收藏主题/取消收藏

3.点赞评论/取消点赞

4.评论主题

5.新建评论

点击查看效果

项目目录

│  .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   

Build Setup

# 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.