# queenAdmin **Repository Path**: taoyouyou/queenAd ## Basic Information - **Project Name**: queenAdmin - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-07-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1. 下载安装最新版 [nodejs](http://nodejs.cn/download/) 2. 使用cnpm国内镜像 ```bash npm install -g cnpm --registry=https://registry.npm.taobao.org ``` 3. clone并进入此项目 4. 安装依赖 ```bash cnpm install ``` 5. 运行服务并调试 ``` bash npm run dev # 浏览器中访问localhost:8888 ``` 因为浏览器限制跨域请求,调试过程请做代理来访问api服务,配置`webpack.config.js`中的`proxy.target`即可(更改之后要重启服务) 6. 编译 ```bash npm run build ``` 7. 发布 将dist目录下的所有文件发布到与API在同一域名下即可 ## server ### code返回码规范: - 0:成功; - -10:参数不能为空; - -11: 参数错误; - -12:数据已存在