Files
hnh-map/.cursor/rules/project-conventions.mdc
Nikolay Tatarinov f6375e7d0f Update project configuration and documentation
- Modified .gitignore to retain rules directory while excluding other cursor files.
- Updated backend-go.mdc to clarify compatibility notes.
- Enhanced project-conventions.mdc with guidelines on coding practices and running tests.
- Added SKILL.md for detailed instructions on running backend and frontend tests in the hnh-map monorepo.
2026-03-03 23:47:48 +03:00

15 lines
1.1 KiB
Plaintext

---
description: Monorepo layout, backend/frontend locations, API/config pointers
alwaysApply: true
---
# Project conventions
- **Monorepo:** Go backend + Nuxt 3 frontend. Backend: `cmd/hnh-map/`, `internal/app/`. Frontend source: `frontend-nuxt/`; production static output: `frontend/` (build artifact from `frontend-nuxt/`, do not edit).
- **Changing API:** Update `internal/app/` (e.g. `api.go`, `map.go`) and [docs/api.md](docs/api.md); frontend uses composables in `frontend-nuxt/composables/` (e.g. `useMapApi.ts`).
- **Changing config:** Update [.env.example](.env.example) and [docs/configuration.md](docs/configuration.md).
- **Local run / build:** [docs/development.md](docs/development.md), [CONTRIBUTING.md](CONTRIBUTING.md). Dev ports: frontend 3000, backend 3080; prod: 8080.
- **Docs:** [docs/](docs/) (architecture, API, configuration, development, deployment). Some docs are in Russian.
- **Coding:** Write tests first before implementing any functionality.
- **Running tests:** When the user asks to run tests or to verify changes, use the run-tests skill: [.cursor/skills/run-tests/SKILL.md](.cursor/skills/run-tests/SKILL.md).