# vuedemo **Repository Path**: ms-zhang/vuedemo ## Basic Information - **Project Name**: vuedemo - **Description**: 这是一个自己写的Vuedemo 。 - **Primary Language**: HTML - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-03-02 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vuedemo1 > A Vue.js project ├── index.html ├── static #静态资源 ├── main.js ├── api │ └── ... # 抽取出API请求 ├── router #路由模块 ├── components │ ├── App.vue │ └── ... ├── utils #工具类 │ ├── auth.js # token --cookie 认证 │ ├── http.js #axios http 请求 │ └── localStorage.js #本地存储数据 ├── store │ ├── store.js # 我们组装模块并导出 store 的地方 │ ├── actions.js # 根级别的 action │ ├── mutations.js # 根级别的 mutation │ └── modules │ └── user.js # 用户模块 │ ├── views #单页面模块 │ ├── common #单页面组件模块 │ └── page #单页面应用模块 │ └ ## Build Setup 项目下载之后需要运行 npm install --registry=https://registry.npm.taobao.org 当这个命令运行完成以后会多出一个node_modules文件夹,里面就是项目所需的所有依赖 ``` bash # 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 # run unit tests npm run unit # run e2e tests npm run e2e # run all tests npm test ``` #图片懒加载 npm install vue-lazyload -S #store 存储 npm install store -S #cookie 操作 npm install js-cookie -S #ele ui npm install element-ui -S #axios api 请求处理 npm install axios -S #vue-router vue 路由管理 npm install vue-router -S #three.js 特效 #特效是直接引用其JS For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).