refactor: restore root layout and split mysql config

This commit is contained in:
2026-03-19 17:34:45 +08:00
parent 74e50a2b30
commit 1b420cd492
28 changed files with 172 additions and 268 deletions
+31 -16
View File
@@ -1,30 +1,45 @@
# MobileModels Workspace
# MobileModels
This repository is organized into two layers:
The project now uses the repository root as the single runtime entry and can be started directly with Docker Compose.
- `workspace/`
- source workspace
- upstream raw data, notes, and historical files
- `delivery/`
- delivery artifact
- a ready-to-run Docker Compose project with web UI, MySQL schema, and docs
## Usage
Run from the delivery directory:
## Run
```bash
cd delivery
docker compose up --build -d
```
If you want a local test MySQL together with the app:
```bash
docker compose -f docker-compose.yml -f docker-compose.test.yml up --build -d
```
Entry pages:
- `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`
More delivery details:
## Structure
- [delivery/README.md](delivery/README.md)
- [delivery/docs/README.md](delivery/docs/README.md)
```text
workspace/ upstream raw data, notes, and history files
dist/ build outputs and MySQL seed
docs/ project docs
sql/ MySQL schema
tools/ build, sync, import, and service scripts
web/ UI pages and static assets
```
Notes:
- `workspace/` stores the source workspace
- `docker-compose.yml`, `Dockerfile`, and `tools/` live in the project root
- the main compose file targets remote MySQL usage
- `docker-compose.test.yml` provides a local MySQL only for testing
- upstream git sync, index rebuild, and MySQL refresh run inside containers
More details:
- [docs/README.md](docs/README.md)
- [docs/web-ui.md](docs/web-ui.md)