A real-time multiplayer Tic-Tac-Toe game built using Node.js, WebSockets, Redis, and React.
- Node.js (v16 or higher)
- Redis
- Docker (optional, for Redis)
- npm
git clone https://github.com/your-username/tic-tac-toe.git
cd tic-tac-toe
npm install
Create a .env file in the backend folder:
REDIS_HOST=localhost
REDIS_PORT=6379
PORT=3000
JWT_SECRET=mysecretkey
If you have Docker, and don't have the Redis CLI installed, run this command:
docker run -p 6379:6379 --name redis-server -d redis
npm start
npm run dev
Open your browser and go to:
http://localhost:5173