[3/4] Scaffold web service #14

Merged
dernbu merged 2 commits from feat/1-web-scaffold into main 2026-06-13 20:57:05 +02:00
Owner

Summary

  • add the Node.js 22/pnpm package root and production Docker image
  • add a minimal TanStack Start application
  • add /health reporting process, PostgreSQL, and Flyway readiness
  • add ESLint, Prettier, strict TypeScript, Vitest, and a focused health test

Size

445 handwritten/generated-route lines, plus the required generated 4,544-line pnpm-lock.yaml. The lockfile is the explicit generated-file exception to the review LOC cap.

Verification

  • pnpm install --frozen-lockfile
  • pnpm lint
  • pnpm typecheck
  • pnpm test (1 passed)
  • pnpm build
  • docker build .

Stack 3 of 4. Depends on and targets feat/1-flyway-scaffold; merge the preceding PRs first.

## Summary - add the Node.js 22/pnpm package root and production Docker image - add a minimal TanStack Start application - add `/health` reporting process, PostgreSQL, and Flyway readiness - add ESLint, Prettier, strict TypeScript, Vitest, and a focused health test ## Size 445 handwritten/generated-route lines, plus the required generated 4,544-line `pnpm-lock.yaml`. The lockfile is the explicit generated-file exception to the review LOC cap. ## Verification - `pnpm install --frozen-lockfile` - `pnpm lint` - `pnpm typecheck` - `pnpm test` (1 passed) - `pnpm build` - `docker build .` Stack 3 of 4. Depends on and targets `feat/1-flyway-scaffold`; merge the preceding PRs first.
dernbu force-pushed feat/1-web-scaffold from ce2e41cfb3 to 2f53be70a0 2026-06-13 20:05:47 +02:00 Compare
dernbu changed target branch from feat/1-flyway-scaffold to main 2026-06-13 20:10:55 +02:00
@ -0,0 +1,12 @@
import { createFileRoute } from "@tanstack/react-router";
Author
Owner

/api/health path

/api/health path
@ -0,0 +7,4 @@
const databaseUrl = process.env.DATABASE_URL;
const pool = databaseUrl ? new Pool({ connectionString: databaseUrl }) : null;
export async function getHealthResponse(): Promise<Response> {
Author
Owner

Lets just return 200 ok first, no query postgres

Lets just return 200 ok first, no query postgres
@ -0,0 +7,4 @@
};
}
export function buildHealthReport(
Author
Owner

Same, hardcode 200 ok first for health

Same, hardcode 200 ok first for health
dernbu referenced this pull request from a commit 2026-06-13 20:52:59 +02:00
dernbu merged commit d3f2b6e653 into main 2026-06-13 20:57:05 +02:00
dernbu deleted branch feat/1-web-scaffold 2026-06-13 20:57:05 +02:00
Sign in to join this conversation.
No reviewers
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!14
No description provided.