# Vuexms **Repository Path**: Chen-95/Vuexms ## Basic Information - **Project Name**: Vuexms - **Description**: 简单的用户后台管理系统... - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-03-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vuexms ### 介绍 简单的用户后台管理系统... ### 软件架构 - Express框架搭建后端 - Vue 搭建前端 ### 安装使用说明 ##### 一. 安装后端 1. `cd server` 2. 安装依赖 `npm install` 3. 运行 `npm run start` 要先启动mysql数据库 如果出现如下错误: ``` F:\我的项目\vuexms后台管理系统\server>npm run start > server@0.0.0 start F:\我的项目\vuexms后台管理系统\server > node ./bin/www internal/modules/cjs/loader.js:582 throw err; ^ Error: Cannot find module 'mysql' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15) at Function.Module._load (internal/modules/cjs/loader.js:506:25) at Module.require (internal/modules/cjs/loader.js:636:17) at require (internal/modules/cjs/helpers.js:20:18) at Object. (F:\我的项目\vuexms后台管理系统\server\routes\conn.js:2:13) at Module._compile (internal/modules/cjs/loader.js:688:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! server@0.0.0 start: `node ./bin/www` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the server@0.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-03-17T06_44_36_288Z-debug.l og ``` 需要安装mysql依赖 `npm install mysql` 后端启动成功如下所示: ``` F:\我的项目\vuexms后台管理系统\server>cnpm install mysql √ Installed 1 packages √ Linked 10 latest versions √ Run 0 scripts √ All packages installed (9 packages installed from npm registry, used 951ms(network 846ms), speed 23.79kB/s, json 11(20.12kB), tarball 0B) F:\我的项目\vuexms后台管理系统\server>npm run start > server@0.0.0 start F:\我的项目\vuexms后台管理系统\server > node ./bin/www 服务器已经启动 连接数据库成功! admin 123456 POST /checklogin 200 125.793 ms - 171 GET /getuserlist 200 3.195 ms - 1547 ``` ##### 二. 安装前端 1. `cd vuexms` 2. 安装依赖 `npm install` 3. 运行 `npm run div` 前端vue启动成功如下所示: ``` F:\我的项目\vuexms后台管理系统\vuexms>npm run dev > vuexms@1.0.0 dev F:\我的项目\vuexms后台管理系统\vuexms > webpack-dev-server --inline --progress --config build/webpack.dev.conf.js 10% build 11% building modules 12/15 modules 3 active ...uexms后台管理系统\vuexms\src\store\index.j 12% b 12% b 12% building modules 20/26 modules 6 active ...exms后台管理系统\vuexms\src\router\index 13% build 13% building modules 27/33 modules 6 active ...\我的项目\vuexms后台管理系统\vuexms\src\Ap 13% build 13% building modules 28/34 modules 6 active ...台管理系统\vuexms\src\components\login.vue 13% b 13% 13 13% building modules 28/38 modules 10 active ...系统\vuexms\src\components\userList.v 14% build 14% building modules 40/48 modules 8 active ...台管理系统\vuexms\src\components\login.vue 14% 14% b 1 14% building modules 40/52 modules 12 active ...理系统\vuexms\src\components\vipUser.v 15% build 15% building modules 48/56 modules 8 active ...台管理系统\vuexms\src\components\login.vue 15% 16% b 1 16% building modules 52/60 modules 8 active ...理系统\vuexms\src\components\vipUser.vu 16% build 16% building modules 54/63 modules 9 active ...台管理系统\vuexms\src\components\login.vue 16% 16% b 1 16% building modules 54/67 modules 13 active ...理系统\vuexms\src\components\vipUser.v 16% building modules 54/68 modules 14 active ...xms\src\components\changePassword.vue{ parser: "bab ylon" } is deprecated; we now treat it as { parser: "babel" }. 17% build 17% building modules 62/71 modules 9 active ...台管理系统\vuexms\src\components\login.vue 17% 17% b 1 17% building modules 62/75 modules 13 active ...理系统\vuexms\src\components\vipUser.v 95% emitting DONE Compiled successfully in 5629ms 14:55:56 I Your application is running here: http://localhost:8080 ``` ### 登录帐号密码 浏览器进入 http://localhost:8080 帐号:admin 密码:123456