Monorepo with:
client/: React + TypeScript + Redux Toolkit + RTK Queryserver/: NestJS GraphQL server (in-memory store)packages/schema/: GraphQL SDL (single source of truth) + generated TypeScript types
- Node.js 22+
- pnpm (via Corepack)
From the repo root:
corepack enable
pnpm installThe schema lives in packages/schema/schema.graphql.
Generate shared TS types (server + client RTK Query hooks):
pnpm codegenpnpm install, pnpm dev, and pnpm build also run codegen automatically.
Starts server on http://localhost:4000/graphql and client on Vite default port:
pnpm devpnpm build- Data is stored in memory; restarting the server resets forms/responses.
- The client uses RTK Query with codegen output in
client/src/gql/generated.ts.