本案例是调用GitHub官方提供的API,基于axios,pubsub-js实现的一个demo,目的让自己更加熟悉vue组件化开发思想,和前后端分离开发中调用后端接口获取数据渲染页面。
本文最初发表在博客园,喜欢看博客的同学也可以前往---找到我
# 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 a detailed explanation on how things work, check out the guide and docs for vue-loader.