Files
caro/web-client
tiennm99 e8c08139db ci: modernize GitHub Actions, add Pages deployment
- Replace outdated Build.yml (v2 actions, JDK 1.8, 3-OS matrix)
  with modern workflow (v4 actions, JDK 21, single ubuntu runner)
- Add separate web client build job
- Add deploy-pages.yml for auto-deploying web-client to GitHub Pages
  on push to master (web-client/** changes only)
- Set Vite base path to /caro/ for GitHub Pages compatibility
2026-04-10 10:29:36 +07:00
..

Gomoku Web Client

Phaser 3 web client for the Gomoku game server.

Setup

npm install
npm run dev

Open http://localhost:5173 in your browser.

Requirements

  • Node.js 18+
  • Game server running on localhost:1024 (WebSocket on port 1025)

Server Connection

The client connects via WebSocket to ws://localhost:1025/ratel by default. To connect to a remote server, update the URL in src/services/connection-service.js.

Scripts

Command Description
npm run dev Start development server with HMR
npm run build Build for production (dist/)
npm run preview Preview production build locally

Tech Stack

  • Phaser 3 — HTML5 game engine
  • Vite — build tool
  • Vanilla JavaScript with JSDoc annotations