Date:2019-6-15
文件管理系统(云盘)
数据库:MySQL 5.7
前端框架:Vue.js
后端框架:Node.js+Express
Node版本:10.16.0
NPM版本:6.9.0
- CouldDisk-Client: 前端工程
- CloudDisk-Server: 后端工程
- 数据库:
数据库配置文件:./CloudDisk-Server/config/conf_mysql.js
module.exports = {
host: 'localhost',
port: 3306,
user: 'root', //set your mysql username
password: '', //set your mysql password
database: '', //set your database
multipleStatements: true
};
表的建立与触发器、存储过程、视图:
-
表的建立:
./CloudDisk-Server/database/task/init.sql
-
触发器:
./CloudDisk-Server/database/task/triggers.sql
-
存储过程:
./CloudDisk-Server/database/task/functions.sql
-
视图:
./CloudDisk-Server/database/task/views.sql
- 后端
配置文件上传的存储路径:./CloudDisk-Server/config/conf_path.js
module.exports = {
FILE_PATH: '/'
// set your file path where you want to save uploading files, like '/root/web/upload/'
};
开启服务:
cd CloudDisk-Server
npm install
node bin/www
- 前端
开启服务:
cd CloudDisk-Client
---开发模式
npm run serve
---生产模式
npm run build
生产模式打包后的文件在./CloudDisk-Client/dist