Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

Osalotioman/Chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

126 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess

This project is no longer being maintained, you can get in touch if you have any questions or want to revive the project or anything.

The original code can be found here: https://github.com/Osalotioman/Chess/tree/b08a8d548391b3f145817e245654b3fededc7f54

This is an implementation of a Chess game with a Next.js frontend, a Node.js WebSocket server for real-time multiplayer, and a dedicated REST API server for account/auth operations. A working version of this game can be found here: https://chess-championship-arena.vercel.app/

Repository Structure

  • client/ - Next.js frontend (App Router)
  • ws-server/ - Node.js WebSocket server (TypeScript, ws)
  • api-server/ - Node.js REST API server (Fastify, Zod, Prisma, PostgreSQL, TypeScript)

Quick Start

Frontend (Next.js)

  1. Install dependencies:
  2. Start the dev server:
    • pnpm dev
  3. Open http://localhost:3000

WebSocket Server (Node.js)

  1. Install dependencies:
  2. Start the server:
    • pnpm dev (recommended for development)
    • or pnpm build && pnpm start
  3. The server listens on ws://localhost:8080 by default. Health check: http://localhost:8080/health

API Server (Node.js)

  1. Install dependencies:
  2. Start the server:
    • pnpm dev (recommended for development)
    • or pnpm build && pnpm start
  3. The server listens on http://localhost:4000 by default.
  4. Run migrations before first start:

License

This project is licensed under the Apache License 2.0 See LICENSE for details.

About

A two player chess game using html/css/js.

Topics

Resources

License

Code of conduct

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Contributors

Languages