A lightweight full-stack starter for server-side rendering with NestJS and React.
This project combines:
- NestJS (with Fastify) as the HTTP server and API layer
- React + React Router for UI and route-based rendering
- SSR rendering pipeline that serves HTML from the server, then hydrates on the client
- NestJS handles incoming page requests
- Server-side React rendering produces HTML for the current route
- Data can be prepared on the server and hydrated into the client
- Client-side React takes over after hydration for interactive updates
This gives a balanced setup for SEO, fast first paint, and modern SPA behavior after load.
- React 19 + React Router 7
- NestJS 11 + Fastify
- Rsbuild + TypeScript
- MikroOrm + SQLite
- Zod + nestjs-zod
npm install
npm run devDev URL: http://localhost:8888/development
npm run dev- start development servernpm run build- build client and server bundlesnpm run preview- run production buildnpm run lint- run spellcheck and ESLintnpm run type-check- run TypeScript project checks
eng/ engineering configuration
scripts/ build/dev bootstrap
src/client/ React app and SSR entry
src/server/ Nest modules, APIs, and SSR integration
src/shared/ shared types, schemas, and route constants
MIT