diff --git a/AGENTS.md b/AGENTS.md index f0eccb3..4bf23f8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -48,6 +48,7 @@ bun run build - Prefer minimal changes and avoid unrelated refactors. - Treat `var/` as runtime data only; ignore it for code changes and commits. +- Every change must be committed and pushed. - Add tests when behavior changes. - Verify Go tests after backend changes. - Verify Bun tests after TS client changes. diff --git a/README.md b/README.md index cb26251..45c1df4 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ go test ./... go run ./cmd/api ``` +`var/` is runtime data and is ignored by git. + Run tests via Docker (avoids local permission issues, e.g. `var/`): ```bash diff --git a/docs/frontend-development.md b/docs/frontend-development.md index a61b1d3..7db418e 100644 --- a/docs/frontend-development.md +++ b/docs/frontend-development.md @@ -32,7 +32,7 @@ web/ 2. Open: - `http://localhost:8122/web/` - `http://localhost:8122/web/leaflet-demo.html` (Leaflet map demo for 3D/image placement + sharing) - - `http://localhost:8122/web/maplibre-demo.html` (MapLibre GL vector tiles + Three.js object rendering/placement) + - `http://localhost:8122/web/maplibre-demo.html` (MapLibre GL raster tiles + Three.js GLB/GLTF object rendering/placement) ### Runtime dependencies @@ -63,9 +63,11 @@ web/ - upload via backend endpoint (`/v1/assets/{id}/upload`) - copy/open share link and toggle public/private visibility - MapLibre GL + Three.js example: - - vector tile basemap via MapLibre style + - raster OSM basemap via MapLibre style - map click to place object position - - 3D marker rendering in custom Three.js layer + - custom Three.js layer loads real `glb`/`gltf` assets via `GLTFLoader` + - private assets are loaded with bearer auth header when user is logged in + - fallback primitive is rendered if model load fails or no 3D asset is linked - asset upload/link and share/visibility controls backed by API ## TypeScript client (`libs/geo-api-client`) diff --git a/web/index.html b/web/index.html index 0360e4f..b440bfe 100644 --- a/web/index.html +++ b/web/index.html @@ -4,7 +4,7 @@