Chess

Chess Client

The frontend for the Chess platform. This app is where players:

Built with Next.js App Router and wired to both REST and WebSocket backends.

Local Setup

Run the dependent services first:

Then in client/:

pnpm install
pnpm dev

Open http://localhost:3000.

Environment

Set these in .env.local (or .env):

# Browser-visible websocket endpoint used by the arena
NEXT_PUBLIC_WS_URL=ws://localhost:8080

# Server-side upstream used by app/api proxy route
REST_BACKEND_ORIGIN=http://localhost:4000

Networking Model

The client intentionally uses a split transport model:

Why this exists:

Use app/lib/api.ts for REST requests so headers, errors, and base path behavior stay consistent.

App Surfaces

Auth and Identity

Current product behavior:

Development Notes