# vue-test **Repository Path**: fuzhenli/vue-test ## Basic Information - **Project Name**: vue-test - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-01-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-test(我的项目名称) > A Vue.js project ## Build Setup(clone我的项目后运行) ``` 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 all tests npm test ``` 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). # 创建过程(自己动手新建一个项目的步骤) ## 用脚手架工具 vue-cli 来创建一个使用 vue-loader 的项目 > npm install -g vue-cli ## 创建一个文件夹(hello-vue) > vue init webpack-simple hello-vue ## 进入文件夹 > cd hello-vue ## 安装 > npm install ## 运行 > npm run dev ## ready to go! ## 安装element-ui > npm i element-ui -S ## 在main.js中引入element-ui > import ElementUI from "element-ui" > import "element-ui/lib/theme-chalk/index.css" ## 运行 > npm run dev ## ready to go!