[37.1] Frontend‑only local mock for LawNet BFF #48

Closed
opened 2026-06-14 08:47:10 +02:00 by dernbu · 0 comments
Owner

Parent

#37

Objective

Define the BFF storage contract for LawNet catalog listing and case detail lookup, implement file-system storage with mock data, and add tests — all without PostgreSQL or UI changes.

Dependencies

Depends on #37 (no code dependencies; this is the first slice).

Scope

  • Define a BFF storage contract (TypeScript interface) for LawNet catalog listing and LawNet case detail lookup.
  • Implement file-system storage provider that reads catalog data from JSON files and serves mock PDF/HTML artifacts from local directories.
  • Create realistic mock catalog and case-detail fixtures as JSON + local files.
  • Add fixture-backed tests covering the storage contract and BFF routes.
  • Wire the file-system provider into the web/BFF service so it runs via pnpm dev without Docker Compose.

Out of scope

  • PostgreSQL storage or dependency injection.
  • UI/frontend dashboard or detail pages.
  • Flyway schema migrations.
  • Live LawNet ingestion.

Done when

  • pnpm dev serves LawNet catalog and case-detail BFF routes using file-system mock storage.
  • Curl requests against the BFF return realistic mock catalog listings and case details.
  • Tests pass covering the storage contract and BFF route handlers.
  • No PostgreSQL or Docker Compose required for the above.
## Parent #37 ## Objective Define the BFF storage contract for LawNet catalog listing and case detail lookup, implement file-system storage with mock data, and add tests — all without PostgreSQL or UI changes. ## Dependencies Depends on #37 (no code dependencies; this is the first slice). ## Scope - Define a BFF storage contract (TypeScript interface) for LawNet catalog listing and LawNet case detail lookup. - Implement file-system storage provider that reads catalog data from JSON files and serves mock PDF/HTML artifacts from local directories. - Create realistic mock catalog and case-detail fixtures as JSON + local files. - Add fixture-backed tests covering the storage contract and BFF routes. - Wire the file-system provider into the web/BFF service so it runs via `pnpm dev` without Docker Compose. ## Out of scope - PostgreSQL storage or dependency injection. - UI/frontend dashboard or detail pages. - Flyway schema migrations. - Live LawNet ingestion. ## Done when - `pnpm dev` serves LawNet catalog and case-detail BFF routes using file-system mock storage. - Curl requests against the BFF return realistic mock catalog listings and case details. - Tests pass covering the storage contract and BFF route handlers. - No PostgreSQL or Docker Compose required for the above.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dernbu/lawnet-scraper#48
No description provided.