完善初始化更新
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Repository Guidelines
|
||||
|
||||
## Project Structure & Module Organization
|
||||
- `sproutgate-frontend/`: React + Vite app. Entry at `src/main.jsx`, main UI in `src/App.jsx`, styles in `src/styles.css`.
|
||||
- `sproutgate-backend/`: Go + Gin API. Entry at `main.go`, HTTP handlers in `internal/handlers/`, domain models in `internal/models/`, storage in `internal/storage/`.
|
||||
- `sproutgate-frontend/`: React + Vite app. Entry at `src/main.jsx`, main UI in `src/App.jsx`, user portal partials in `src/components/userPortal/` (e.g. `UserPortalAuthSection.jsx`, `UserPortalProfileSection.jsx`), styles in `src/styles.css`.
|
||||
- `sproutgate-backend/`: Go + Gin API. Entry at `main.go`, HTTP handlers in `internal/handlers/` (split across `handler.go`, `requests.go`, `helpers.go`, `auth_login.go`, `auth_password.go`, `secondary_email.go`, `profile.go`, `checkin.go`, `admin.go`), domain models in `internal/models/`, storage in `internal/storage/`.
|
||||
- `sproutgate-backend/data/`: JSON-backed config and data. Config files live in `data/config/`, user records in `data/users/`.
|
||||
- Root scripts `sproutgate.sh` and `sproutgate.bat` provide dev and build shortcuts.
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
- PRs should include a concise summary, testing notes, and screenshots for UI changes; call out any config or env var updates.
|
||||
|
||||
## Security & Configuration Tips
|
||||
- Backend configuration is stored under `sproutgate-backend/data/config/` (admin, auth, email).
|
||||
- Backend configuration is stored under `sproutgate-backend/data/config/` (admin, auth, email, check-in, registration invites).
|
||||
- Frontend API base URL can be set via `sproutgate-frontend/.env` using `VITE_API_BASE`.
|
||||
- Avoid committing real credentials or production tokens; use local overrides for secrets.
|
||||
- API reference lives in `sproutgate-backend/API_DOCS.md` and is served at `GET /api/docs`.
|
||||
- API reference lives in `sproutgate-backend/API_DOCS.md` and is served at `GET /api/docs`. Brief JSON overview: `GET /` and `GET /api`.
|
||||
|
||||
Reference in New Issue
Block a user