Files
ledgerdock/AGENTS.md

29 lines
1.3 KiB
Markdown

# Repository Guidelines
## Stack Snapshot
- DMS monorepo with FastAPI API + RQ worker (`backend/`) and React + Vite + TypeScript frontend (`frontend/`).
- Services in `docker-compose.yml`: `api`, `worker`, `frontend`, `db` (Postgres), `redis`, `typesense`.
- Runtime persistence uses Docker named volumes (`db-data`, `redis-data`, `dcm-storage`, `typesense-data`).
## Project Layout
- Backend app code: `backend/app/` (`api/`, `services/`, `db/`, `models/`, `schemas/`, `worker/`).
- Backend dependencies: `backend/requirements.txt`.
- Frontend app code: `frontend/src/` (`components/`, `lib/api.ts`, `types.ts`, styles).
- Technical docs live in `doc/` with `doc/README.md` as the index.
## Working Commands
- Start full stack: `docker compose up --build -d`
- Stop stack: `docker compose down`
- Tail logs: `docker compose logs -f`
- Frontend dev only: `cd frontend && npm run dev`
- Frontend production build: `cd frontend && npm run build`
## Validation
- No automated test suite is currently committed.
- Manual checks for code changes: `GET /api/v1/health`, upload + processing flow, search, document preview/download, and clean `docker compose logs -f` output for `api` and `worker`.
## If You Add Tests
- Backend: place near changed module, use `test_*.py`.
- Frontend: use `*.test.tsx`.
- Update `README.md` and `doc/README.md` with test run commands.