This commit is contained in:
张成
2026-04-29 13:46:24 +08:00
parent dee3a336ce
commit b7208545e3
7 changed files with 277 additions and 68 deletions

View File

@@ -13,7 +13,7 @@
## 本地运行
1. 安装依赖:项目根目录 `npm install``admin` 目录 `npm install`
2. 在 MySQL 中创建库,导入 node-core 自带的系统表;再执行 `sql/tpl_demo.sql` 创建演示表
2. 在 MySQL 中创建库`USE` 后,执行 **`sql/init.sql`**(或 `migrations/init.sql`,内容一致):创建系统表并写入默认租户、**超级管理员角色**、用户 **`admin` / `123456`**、**站点标题 `sys_title` 与 Logo `sys_logo`**、菜单树、控件字典等;再按需执行 **`sql/tpl_demo.sql`** 创建演示表
3. 修改 `config/config.development.js` 中的数据库账号等
4. 根目录 `npm run api` 启动后端(默认端口见 `config/config.js`
5. `npm run dev` 启动管理端,浏览器访问 webpack 提示的端口