refactor: restore root layout and split mysql config
This commit is contained in:
46
README.md
46
README.md
@@ -1,37 +1,45 @@
|
||||
# MobileModels Workspace
|
||||
# 手机品牌型号汇总
|
||||
|
||||
当前仓库按两层结构组织:
|
||||
当前项目以根目录作为统一入口,支持通过 Docker Compose 直接启动设备查询、数据管理和 MySQL 服务。
|
||||
|
||||
- `workspace/`
|
||||
- 工作空间
|
||||
- 存放上游原始数据、补充资料和历史变更文件
|
||||
- `delivery/`
|
||||
- 交付物
|
||||
- 存放可直接运行的 Docker Compose 项目、Web 页面、MySQL schema 和交付文档
|
||||
|
||||
## 使用方式
|
||||
|
||||
进入交付目录启动:
|
||||
## 启动方式
|
||||
|
||||
```bash
|
||||
cd delivery
|
||||
docker compose up --build -d
|
||||
```
|
||||
|
||||
如需本地测试 MySQL,一起叠加测试配置启动:
|
||||
|
||||
```bash
|
||||
docker compose -f docker-compose.yml -f docker-compose.test.yml up --build -d
|
||||
```
|
||||
|
||||
页面入口:
|
||||
|
||||
- `http://127.0.0.1:8123/web/device_query.html`
|
||||
- `http://127.0.0.1:8123/web/brand_management.html`
|
||||
- `http://127.0.0.1:8123/web/device_query.html?view=docs`
|
||||
|
||||
## 目录说明
|
||||
## 目录结构
|
||||
|
||||
```text
|
||||
workspace/ 原始数据与工作空间
|
||||
delivery/ 可交付运行物
|
||||
workspace/ 上游原始数据、补充资料与历史文件
|
||||
dist/ 构建产物与 MySQL seed
|
||||
docs/ 项目文档
|
||||
sql/ MySQL schema
|
||||
tools/ 构建、同步、导入与服务脚本
|
||||
web/ 页面与静态资源
|
||||
```
|
||||
|
||||
更多交付说明见:
|
||||
## 说明
|
||||
|
||||
- [delivery/README.md](delivery/README.md)
|
||||
- [delivery/docs/README.md](delivery/docs/README.md)
|
||||
- `workspace/` 用于存放原始数据工作区
|
||||
- `docker-compose.yml`、`Dockerfile`、`tools/` 都位于项目主目录
|
||||
- 默认主配置面向远程 MySQL
|
||||
- `docker-compose.test.yml` 中的 MySQL 仅用于本地测试
|
||||
- 上游原始 git 同步、索引构建和 MySQL 刷新都在容器内完成
|
||||
|
||||
更多说明见:
|
||||
|
||||
- [docs/README.md](docs/README.md)
|
||||
- [docs/web-ui.md](docs/web-ui.md)
|
||||
|
||||
Reference in New Issue
Block a user