{"id":14976450,"url":"https://github.com/liuweijw/vue2-all","last_synced_at":"2025-10-27T20:31:43.256Z","repository":{"id":107360508,"uuid":"114983857","full_name":"liuweijw/Vue2-All","owner":"liuweijw","description":"Vue2 + Vue-router2 + Vuex + Webpack + axios + jwt","archived":false,"fork":false,"pushed_at":"2018-10-15T01:10:55.000Z","size":426,"stargazers_count":70,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T08:05:46.664Z","etag":null,"topics":["axios","es6","eslint","javascript","jwt","node","nodejs","vscode","vue-loader","vue2","vuex","webpack3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liuweijw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-21T08:48:31.000Z","updated_at":"2024-03-26T14:44:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6260e65-cf83-4250-85e2-1f8adc3ea886","html_url":"https://github.com/liuweijw/Vue2-All","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":"0.11111111111111116","last_synced_commit":"a95d1658aae75796adafbce313e9cc9ad0aef8ed"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuweijw%2FVue2-All","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuweijw%2FVue2-All/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuweijw%2FVue2-All/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuweijw%2FVue2-All/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liuweijw","download_url":"https://codeload.github.com/liuweijw/Vue2-All/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238553192,"owners_count":19491385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","es6","eslint","javascript","jwt","node","nodejs","vscode","vue-loader","vue2","vuex","webpack3"],"created_at":"2024-09-24T13:53:54.383Z","updated_at":"2025-10-27T20:31:42.862Z","avatar_url":"https://github.com/liuweijw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue2-All\nVue2 + Vue-router2 + Vuex + Webpack + Axios + jwt\n\n采用官方Vue cli脚手架初始项目\n\n目的：一步一步完善项目架构、添加常用组件、代码约束规范、添加常用第三方组件，使之能方便快速构建适合团队开发的项目架构。\n\n下载：git clone https://github.com/liuweijw/Vue2-All.git\n\n切换目录 cd Vue2-All\n\n安装依赖到本地 npm install\n\n运行 npm run dev\n\n本地浏览器查看运行效果 http://localhost:8080\n\n发布运行命令 npm run build\n\n检查且规范代码 npm run lint\n\n查看项目分析 npm run build --report\n\n单元测试 npm run unit\n\n# 学习知识\n1、nodejs [docs for nodejs](http://www.runoob.com/nodejs/nodejs-tutorial.html)\n\n2、webpack [guide](http://vuejs-templates.github.io/webpack/)\n\n3、vue2 [guide](https://cn.vuejs.org/v2/guide/index.html)\n\n4、vue-loader [docs for vue-loader](http://vuejs.github.io/vue-loader)\n\n5、vuex [guide](https://vuex.vuejs.org/zh-cn/)\n\n- vue-devtools 很方便的查看vuex，安装方法 [guide](https://github.com/liuweijw/Vue2-All/blob/master/VUE_DEV.md)\n\n6、es6 [guide](http://es6.ruanyifeng.com/)\n\n7、网络请求封装 axios [guide](https://github.com/axios/axios)\n\n8、权限控制 jwt [后台配合springboot工程](https://github.com/liuweijw/fw-framework)\n\n- jwt 不需要的可以跳过\n\n# 开发工具\n1、git [guide](http://www.runoob.com/git/git-tutorial.html)\n\n2、vscode [guide](https://code.visualstudio.com/)\n\n- vscode plugin install [guide](https://github.com/liuweijw/Vue2-All/blob/master/VSCODE.md)\n\n# 开发规范\n\n- vscode 开发环境配置更好的匹配eslint规则定义，方便快速开发、修复问题。 用户设置如下：\n```\n{\n    // 自动保存\n    \"files.autoSave\": \"onFocusChange\",\n    // tab 自动缩进2个空格\n    \"editor.tabSize\": 2,\n    // 打开同类多个文件\n    \"workbench.editor.enablePreview\": false,\n    // Turns auto fix on save on or off.\n    \"eslint.autoFixOnSave\": true,\n    // 启用后，保存文件时在文件末尾插入一个最终新行。\n    \"files.insertFinalNewline\": true,\n    // 启用后，将在保存文件时剪裁尾随空格。\n    \"files.trimTrailingWhitespace\": true,\n    // 采用 atom key 风格\n    \"atomKeymap.promptV3Features\": true,\n    \"editor.multiCursorModifier\": \"ctrlCmd\",\n    \"editor.formatOnPaste\": true,\n    // theme\n    \"workbench.colorTheme\": \"One Dark Pro\",\n    \"workbench.iconTheme\": \"vscode-icons\"\n}\n```\n- Eslint 规范定义 [点击查看介绍](.eslintrc.js) 更多的可以自行配置\n\n# 项目待完成\n- 集成weex\n- 搭建weex-android 和 weex-ios\n- 搭建demo工程\n\n# 项目更新说明\n- 2017-12-21 初始化项目提交\n- 2017-12-25 完成Vue2 + Vue-router2 + Vuex + Webpack + Axios 集成并且配合[服务端](https://github.com/liuweijw/fw-framework)调试OK\n- 2017-12-26 至 2017-12-31 集成jwt 并且完成权限验证、路由、登录、登出等功能调试OK。\n\n# 问题和描述\n- 使用Visual build软件的时候，编译05版本的VS项目，报错：error MSB3428: 未能加载Visual C++组建\"VCBuild.exe\"。要解决此问题，1）安装.NET Framework 2.0 SDK；2）安装Microsoft Visual Studio 2005；3）如果将该组件安装到了其他位置，请讲其位置添加到系统路径中；\n\n- 此问题解决： npm install --global --production windows-build-tools  （全局安装windows构建工具）\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuweijw%2Fvue2-all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliuweijw%2Fvue2-all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuweijw%2Fvue2-all/lists"}