Online multiplayer chess built with Next.js, Express, & socket.io
MIT License
Built with Next.js 14, Tailwind CSS + daisyUI, react-chessboard, chess.js, Express.js, socket.io and PostgreSQL.
Node.js 20 or newer is recommended.
This project is structured as a monorepo using pnpm workspaces, separated into three packages:
client
- Next.js application for the front-end, server
- Node/Express.js application for the back-end, types
- Shared type definitions required by the client and server.pnpm install
in the root directory of the project.server
directory, create a .env
file for your PostgreSQL database. You can try ElephantSQL or Aiven for a free hosted database.
PGHOST=db.example.com
PGUSER=exampleuser
PGPASSWORD=examplepassword
PGDATABASE=chessu
pnpm dev
.
pnpm dev:client
and pnpm dev:server
, respectively.Please read our Contributing Guidelines before starting a pull request.