This repository contains the source code for kentcdodds.com, built with Remix, React, TypeScript, Vite, and an Express server.
- React Router + React + TypeScript
- Vite build pipeline
- Express runtime server
- Prisma + SQLite
- Tailwind CSS
- Vitest and Playwright for testing
- Clone the repository.
- Copy environment variables:
cp services/site/.env.example services/site/.env
- Run the full setup script:
npm run setup -s
The setup script installs dependencies, resets the local database, validates the project, primes local cache data, installs Playwright browsers, and runs end-to-end tests.
This repo now uses npm workspaces. Install dependencies from the repository root
so the site and worker packages share one lockfile and one node_modules tree.
The site itself lives in services/site, while root npm run ... commands
forward to that workspace for convenience.
Start the development server:
npm run dev
Then open http://localhost:3000.
npm run dev- start local development servernpm run test- run unit/component testsnpm run test:e2e:dev- run Playwright tests against dev servernpm run lint- run Oxlintnpm run lint:all- run lint across the site and workspace packagesnpm run typecheck- run TypeScript checksnpm run typecheck:all- run TypeScript checks across all workspacesnpm run build- build the appnpm run nx:graph- inspect the Nx workspace graph
For contribution guidelines and manual setup details, read
CONTRIBUTING.md.