From Hello World to authenticated multiplayer.
Build a two-player tic-tac-toe game using Redweb TSX and routed sockets. No React, no second server, no giant first step.
Three runnable checkpoints, six short chapters. Requires Node 22.13+ and npm; the final browser tests use installed Google Chrome. Uses published Redweb 0.14.0 and redweb-client 0.2.0.
Download the complete project Setup, optional configuration, and limits
Hello World
Render a TSX page with a minimal application entry point.
Server-owned state
Make two tabs share a reactive counter without browser glue.
The server is the referee
Model and test turns, wins, ownership, and stale moves.
Typed game sockets
Give /match separate join, move, and resume handlers.
Authenticated players
Reuse tested sign-in and compose pages, sockets, and services.
Play, reconnect, and test
Connect the TSX board with redweb-client and verify two real browsers.
This site is a static Redweb export. The downloadable game runs as its own Node server; it is not a live game hosted inside these docs.