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