A Vue.js project
# 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
# 1. npm 安装axios,json-server
# 2. 测试json-server启动,可以配置json文件或者js文件制造动态数据
# 3. config/index.js 配置proxy部分
# 4. 在package.json 配置script 方便启动json-server与dev环境
# 5. 启动方式: npm run mockdev
For a detailed explanation on how things work, check out the guide and docs for vue-loader.