# scoringSystem **Repository Path**: zc-lee/scoring-system ## Basic Information - **Project Name**: scoringSystem - **Description**: 投票评分系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-05 - **Last Updated**: 2022-01-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ldt-vue-cli ## Project setup ``` yarn install ``` ### Compiles and hot-reloads for development ``` yarn serve ``` ### Compiles and minifies for production ``` yarn build ``` ### Lints and fixes files ``` yarn lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### 完善项目目录     |— node_modules   |— public           // 不做编译处理的静态资源   |— src            // 源代码   |  |— api          // 所有请求   |  |— asssts          // 主题、字体等静态资源   |  |— components       // 全局公用组件   |  |— directive        // 全局指令   |  |— filtres         // 全局 filter   |  |— router           // 路由   |  |— store          // vuex   |  |— styles          // 全局样式   |  |— server   // 全局公用方法   |  |— views          // 页面   |  |— APP.vue          // 入口页面   |  |— main.js          // 入口 加载组件 初始化   |  |— permission.js      // 权限管理   |— .env.development      // 开发环境   |— .env.production       // 生产环境   |— .env.test       // 测试环境   |— vue.config.js       // 配置文件   |— .browerslistrc        // 设置浏览器的兼容   |— .eslintrc.js         // eslint 代码检测配置项   |— .gitignore          // git 忽略项   |— babel.config.js       // babel 语法编译   |— package-lock.json    // 记录版本号   |— package.json         // 项目基本信息   |— README.md         // 项入门手册 ### 注: > api 中的文件名称最好与 views 中的模块名称一致对应,方便查看和管理。 > 要根据业务场景判断是否需要 vuex 统一管理数据,耦合度较低的直接在模块中存放 data 即可。 > 统一一套 ESLint,方便检测代码格式。 > 在新版脚手架中去掉了 config 和 build 两个配置文件,换成了可选的 vue.config,js 文件。 > 在新版脚手架中去掉了 static,换成了 public。 ####命名规范 ``` class命名: 中间下划线分割 demo:container_xx id命名: 小驼峰式命名 demo:containerName 变量命名: 小驼峰命名 demo:getUserInfo 基本文件夹命名 : 单个单词 demo:views 复杂文件夹命名: 中间下划线分割 demo: left_look_xx vue文件命名: 大驼峰式命名 demo:HomePage.vue ``` npm yarn npm install yarn npm install react --save yarn add react npm uninstall react --save yarn remove react npm install react --save-dev yarn add react --dev npm update --save yarn upgrade