minor changes
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
# Repository Guidelines
|
# Repository Guidelines
|
||||||
|
|
||||||
## Project Structure & Module Organization
|
## Project Structure & Module Organization
|
||||||
- `src/` holds the React client: `index.js` bootstraps the app, `PickupConfigEditor.js` manages form logic, and sibling files (`App.js`, `*.css`, `*.test.js`) live beside their concerns for easy discovery.
|
- `src/` holds the React client: `App.js` bootstraps the main views (“Slots buchen”, Store-Watch) and composes feature-specific components (z. B. `DashboardView`, `StoreWatchPage`) plus hooks/utilities in neighboring folders.
|
||||||
- `public/` contains the static shell served during development; only add files that must be copied verbatim into the build output.
|
- `public/` contains the static shell served during development; only add files that must be copied verbatim into the build output.
|
||||||
- `server.js` is the Express backend that serves the built client, exposes `/api/pickup-config`, and persists data to `config/pickup-config.json`.
|
- `server.js` is the Express backend that serves the built client, exposes the REST APIs used by the UI (e.g. `/api/stores`, `/api/store-watch/*`, `/api/user/preferences/*`, `/api/location/nearest-store`) und persistiert Daten über die Stores in `config/`.
|
||||||
- `config/` stores generated runtime state. Keep it writable but untracked so local credentials never leak.
|
- `config/` stores generated runtime state (`<profileId>-pickup-config.json`, Admin-Settings, Preferences, Watcher etc.). Keep it writable but untracked so local credentials never leak.
|
||||||
- `build/` is created by `npm run build` and shipped by the Express server or Docker image; never edit files here manually.
|
- `build/` is created by `npm run build` and shipped by the Express server or Docker image; never edit files here manually.
|
||||||
- `docker-compose.yml`, `Dockerfile`, and `rebuildContainer.sh` encapsulate deployment; update them when server ports, env vars, or base images change.
|
- `docker-compose.yml`, `Dockerfile`, and `rebuildContainer.sh` encapsulate deployment; update them when server ports, env vars, or base images change.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user