# smart-card-wxweb

> A Vue.js project

## Build Setup

``` bash
# 注意nodejs版本，已验证版本：v10.13.0,安装流程参考：https://www.cnblogs.com/lvchengda/p/12613440.html
	# 下载
    wget https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.xz
    
    # 解压
    xz -d node-v10.13.0-linux-x64.tar.xz
    tar -xvf node-v10.13.0-linux-x64.tar.xz
    
    # 进入目录
    cd node-v10.13.0-linux-x64/
    
    # 创建软连接
    ln -s /opt/nodejs/node-v10.13.0-linux-x64/bin/node /usr/local/bin/node
    ln -s /opt/nodejs/node-v10.13.0-linux-x64/bin/npm /usr/local/bin/npm
    
    # 测试
    node -v
    npm -v
    
    # 配置taobao镜像
    npm config set registry https://registry.npm.taobao.org
	
# install dependencies
npm install
# linux系统，安装时，需要加一下参数，否则安装会报错(详情参考：https://blog.csdn.net/weixin_33693070/article/details/91367089)
npm install --unsafe-perm

# 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).
