# student-mall **Repository Path**: learning-machine/student-mall ## Basic Information - **Project Name**: student-mall - **Description**: 学子商城后台管理系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-27 - **Last Updated**: 2022-10-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # student-mall > 这是一个极简的 vue admin 管理后台。它只包含了 Element UI & axios & iconfont & permission control & lint ## Build Setup ```bash # 进入项目目录 cd student-mall # 安装依赖 npm install # 建议不要直接使用 cnpm 安装以来,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 npm install --registry=https://registry.npm.taobao.org # 启动服务 npm run dev ``` 浏览器访问 [http://localhost:9528](http://localhost:9528) ## 发布 ```bash # 构建生产环境 npm run build:prod ``` ## 其它 ```bash # 预览发布环境效果 npm run preview # 预览发布环境效果 + 静态资源分析 npm run preview -- --report # 代码格式检查 npm run lint # 代码格式检查并自动修复 npm run lint -- --fix ``` # 目录结构 ```bash ├─ build # 预览发布环境效果node脚本 ├─ dist # 打包后的资源文件 ├─ mock # 项目mock服务 ├─ public # 静态资源 │ ├─ favicon.ico # favicon图标 │ └─ index.html # html模板 ├─ src # 项目源代码 │ ├─ api # 所有请求 │ ├─ assets # 图片 字体等静态资源 │ ├─ components # 全局公用组件 │ ├─ filters # 全局过滤器 │ ├─ icons # icon组件注册 │ ├─ layout # 项目布局骨架 │ ├─ router # 全局路由配置文件 │ ├─ store # 全局 store管理 │ ├─ styles # 全局样式 │ ├─ utils # 全局公用方法 │ ├─ views # views 所有页面 │ ├─ App.vue # 入口页面 │ ├─ main.js # 源码入口 │ └─ settings.js # 项目全局配置文件例如 document.title配置 ├── template # 项目空模板文件 方便大家用此空模板做练习 ├── tests # 前端单测文件夹 用来写测试脚本 ├── .env.development # 开发环境变量配置 ├── .env.production # 生产环境变量配置 ├── .eslintignore # 忽略的eslint配置 ├── .eslintrc.js # eslint配置文件 约束项目书写规范 ├── babel.config.js # babel配置文件 ├── .gitignore # 忽略提交文件 ├── jest.config.js # jest单测脚本 └── package.json # package.json └── postcss.config.js # postcss配置 └── README.md # 项目介绍 md文档 ├── vue.config.js # 对vue-cli自定义配置 ```