This repository contains a TypeScript React client and Node.js server bundled with Rsbuild.
- Client-side: React and TypeScript
- Server-side: Node.js 24 and Express
- Build tooling: Rsbuild, pnpm, and Prettier
Use Node 24 through nvm and pnpm 10:
nvm use
corepack enable
pnpm installTLS/SSL is not supported directly; terminate TLS at a platform router or reverse proxy.
Install dependencies:
pnpm installProduction build:
pnpm run buildDevelopment mode starts the Rsbuild client server with HMR and the Node server concurrently. The server is built once and is not reloaded, so in-memory game sessions remain available:
pnpm run devStart the production server:
pnpm startRun formatting and checks:
pnpm run format
pnpm run format:check
pnpm run lint
pnpm testThe application server listens on port 8080 and Socket.IO listens on port 8090.
The client production artifacts are emitted under dist/client, including manifest.json; the server bundle is dist/server/index.js.
Docker:
docker build . -t boilerplate-react-typescript-nodejs
docker run --name boilerplate-react-typescript-nodejs --rm -p 8080:8080 -it boilerplate-react-typescript-nodejs