chore: sync local updates
This commit is contained in:
@@ -5,7 +5,7 @@ This repository is split into two apps:
|
||||
- `mengyaping-frontend/`: React + Vite UI. Main code is in `src/` (`components/`, `pages/`, `hooks/`, `services/`), with static assets in `public/`.
|
||||
- `mengyaping-backend/`: Go + Gin API and monitor service. Core folders are `handlers/`, `services/`, `router/`, `models/`, `storage/`, `config/`, and `utils/`.
|
||||
|
||||
Runtime data is persisted under `mengyaping-backend/data/` (`websites.json`, `records.json`, `groups.json`, `config.json`). Keep data format changes backward-compatible.
|
||||
Runtime site/group data is in MySQL. Optional `mengyaping-backend/data/` is only for local tooling (e.g. `cmd/importjson` reading `websites.json` / `groups.json`). App settings and admin token live in table `monitor_kv`.
|
||||
|
||||
## Build, Test, and Development Commands
|
||||
Frontend (run inside `mengyaping-frontend/`):
|
||||
@@ -44,4 +44,4 @@ Each PR should include:
|
||||
## Security & Configuration Tips
|
||||
- Do not commit secrets, tokens, or private endpoints.
|
||||
- Frontend dev API target is `http://localhost:8080/api` in `mengyaping-frontend/src/services/api.js`.
|
||||
- Commit only sanitized sample data in `mengyaping-backend/data/`.
|
||||
- Commit only sanitized sample data in `mengyaping-backend/data/`.
|
||||
|
||||
Reference in New Issue
Block a user