这是一个用Vue.js及相关插件模仿制做新浪微博移动版(m.weibo.cn)的单页应用(SPA)项目。css
使用了vue-cli
做为搭建工具,主要使用了vue.js@2.3.3
,vue-resource@1.3.4
,vue-router@2.3.1
,vuex@2.3.1
等工具。html
欢迎Issue、PR、邮件、微博等等各类交流!更欢迎给我点个赞以示鼓励,谢谢你!vue
刷新微博、加载旧微博、简单图片预览(准备实现缩放等手势功能)、Tab页面切换、后台模拟数据、生产环境服务器支持、登陆页面、404页面等...node
git clone https://github.com/JuniorTour/vue-weibo.git cd vue-weibo npm install //推荐使用 cnpm 淘宝NPM镜像安装更快! npm run dev //开发环境中运行,构建完成后,自动访问http://localhost:8080/,自带热更新,便于开发。 npm run prod //或生产环境中运行,资源通过压缩,访问更快。
目前代码关键部分中已经有相应的注释介绍,稍后,我会详细地写出从0构建这个项目的过程,敬请期待!webpack
若是你对此有任何意见和想法,都欢迎经过各类方式和我交流!ヾ(✿゚▽゚)ノgit
. ├── build/ # webpack config files │ └── ... ├── config/ │ ├── index.js # main project config │ └── ... ├── notes/ │ └── ... # 制做过程当中的一些笔记。 ├── src/ │ ├── assets/ # 字体、样式等module 资源 (会被webpack处理) │ │ └── ... │ ├── components/ # 局部组件 │ │ └── ... │ ├── data/ # 模拟数据 │ │ └── ... │ ├── pages/ # 主要页面组件 │ │ └── ... │ ├── main.js # app 入口文件 │ ├── App.vue # 主要app组件 ├── static/ # 图片等纯静态资源 ├── test/ │ └── unit/ # unit tests │ ├── specs/ # test spec files │ ├── index.js # test build entry file │ └── karma.conf.js # test runner config file ├── .babelrc # babel config ├── .postcssrc.js # postcss config ├── .eslintrc.js # eslint config ├── .editorconfig # editor config ├── index.html # index.html template └── package.json # build scripts and dependencies