Next.js 15 + React 19 + TypeScript + Tailwind CSS 4
- Node: >=20.0.0
- Package Manager: pnpm (required)
- Install:
pnpm install - Dev:
pnpm dev
CRITICAL: All resource access MUST go through auto-generated clients from @major-tech/resource-client.
Import and use the auto-generated clients from /clients/:
import { ordersDbClient } from './clients';
const result = await ordersDbClient.invoke(
'SELECT * FROM orders WHERE user_id = $1',
[userId],
'fetch-user-orders'
);
if (result.ok) {
console.log(result.result.rows);
}shadcn/ui: Use exclusively for all UI components. Install components via npx as needed.
npx shadcn@latest add button
npx shadcn@latest add card
npx shadcn@latest add dialog- Next.js 15 with App Router
- React 19 with TypeScript strict mode
- Tailwind CSS 4 (PostCSS)
- Turbo mode enabled for faster dev server
@major-tech/resource-clientfor all resource access
- Run
pnpm lintto check if your changes actually work - Make sure to look at the
@major-tech/resource-clientpackage, the methods available and how to use them - All
invokesof resource-clients should be put in/app/apior server actions - CRITICAL: DO NOT remove or modify
/app/api/healthz/route.ts- required for deployment health checks