Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chess Arena

A realtime multiplayer chess platform built with Next.js, Express, Socket.IO, and PostgreSQL.

Structure

chess-arena/
├── client/         Next.js frontend
└── server/
    ├── src/
    │   ├── routes/
    │   ├── middleware/
    │   ├── services/
    │   └── sockets/
    └── prisma/
        └── schema.prisma

Quick Start

Prerequisites: Node.js 18+, PostgreSQL

  1. Install dependencies:

    cd server && npm install
    cd ../client && npm install
  2. Configure environment: Create .env in the server directory and .env.local in the client directory by copying the examples:

    cp server/.env.example server/.env
    cp client/.env.example client/.env.local

    Fill in the required environment variables in these files.

  3. Push database schema:

    cd server && npx prisma db push
  4. Start development:

    Terminal 1 (Backend):

    cd server && npm run dev

    Terminal 2 (Frontend):

    cd client && npm run dev

Frontend runs on http://localhost:3000, backend on http://localhost:5000.

Tech Stack

  • Frontend: Next.js 15, TypeScript, react-chessboard
  • Backend: Node.js, Express, Socket.IO, chess.js
  • Database: PostgreSQL, Prisma ORM
  • Auth: JWT, bcrypt
  • Deploy: Vercel (frontend), Render (backend), Neon (database)

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages