项目作者: say-hello-user

项目描述 :
vue2结合vuex实现的卖票网
高级语言: JavaScript
项目地址: git://github.com/say-hello-user/vue2.git
创建时间: 2017-03-23T02:48:14Z
项目社区:https://github.com/say-hello-user/vue2

开源协议:

下载


使用vue2.0+vuex2.0+vue-router2.0重构的卖座网

vue2.0 10月初发布正式版了,官方的插件,vuex,vue-router同样升级到2.0了,据说2.0性能比react性能高。

重构过程比较顺利,没什么困难,最主要是生命周期名变更,还有vuex的小变动,可以使用vue-migration-helper帮助升级,有比较友好的提示。

vue2.0如果性能如网上所说的那么快,我建议使用vue,我比较喜欢vue的语法。

vue2.0参考资料

官方文档http://vuejs.org/guide/ 中文翻译http://vuefe.cn/

vue-router2文档 http://router.vuejs.org/zh-cn/index.html

vuex2.0文档 http://vuex.vuejs.org/en/index.html

vue-resourece https://github.com/vuejs/vue-resource

滑动广告插件 https://github.com/surmon-china/vue-awesome-swiper

Build Setup

  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. # run unit tests
  8. npm run unit
  9. # run e2e tests
  10. npm run e2e
  11. # run all tests
  12. npm test