Scaffold Next.js frontend with generated OpenAPI client and core views

Next.js (App Router) + React 19 + TypeScript + Tailwind v4, with shadcn-style UI primitives (Button, Input, Card, Label via cva/tailwind-merge). A typed API client is generated from the backend OpenAPI spec with openapi-typescript + openapi-fetch (npm run gen:api); the committed openapi.json/schema.d.ts are the snapshot.

Views: landing, login, register, tree list + create, and tree detail with person list + create. Auth rides the same-origin HttpOnly session cookie the backend sets (Caddy proxies /api/*), so no token handling in JS. Built as a standalone container. Mobile-first; next build is clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Justin Paul <[email protected]>
This commit is contained in:
justinandClaude Opus 4.8 committed 2026-06-06 11:03:07 -04:00
1 parent e2edd4b2f1
commit a5a79f01a7
24 files changed
+4281

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import Link from "next/link";
import { Button } from "@/components/ui/button";
export default function Home() {
return (
<div className="space-y-6">
<div className="space-y-2">
<h1 className="text-3xl font-bold">Provenance</h1>
<p className="text-neutral-600">
Trace where you come from — your family and your land — with every fact linked to a
source, on infrastructure you control.
</p>
</div>
<div className="flex gap-3">
<Link href="/register">
<Button>Create an account</Button>
</Link>
<Link href="/login">
<Button variant="outline">Sign in</Button>
</Link>
</div>
</div>
);
}