- npm install
- 复制
config.local.example.js
为config.local.js
- 并且修改数据库配置为自己的数据库, 例如:
host: '127.0.0.1', port: 3306, user: 'root', password: '123456', database: 'jianghujs_file_explorer'
- 启动 npm run dev
# 数据库初始化
create database `jianghujs_file_explorer` default character set utf8mb4 collate utf8mb4_bin;
use jianghujs_file_explorer;
# 运行 sql/init.sql 文件
- admin/123456
- 应用协议: frontendDemo.html
- 增删改查(select,insert,softUpdate,softDelete)
- egg-jianghu mysql view
DROP VIEW IF EXISTS `_view01_user`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `_view01_user` AS select * from `_user`;