https://github.com/ismailbinmujeeb/tictactoe-multiplayer-game
Multiplayer Tic Tac Toe Game
https://github.com/ismailbinmujeeb/tictactoe-multiplayer-game
ejs expressjs game mongodb mongoose multiplayer nodejs socket-io tic-tac-toi
Last synced: 11 months ago
JSON representation
Multiplayer Tic Tac Toe Game
- Host: GitHub
- URL: https://github.com/ismailbinmujeeb/tictactoe-multiplayer-game
- Owner: IsmailBinMujeeb
- License: mit
- Created: 2025-02-01T05:18:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-15T11:30:54.000Z (over 1 year ago)
- Last Synced: 2025-03-15T12:25:28.784Z (over 1 year ago)
- Topics: ejs, expressjs, game, mongodb, mongoose, multiplayer, nodejs, socket-io, tic-tac-toi
- Language: JavaScript
- Homepage: https://tictactoe-q4q1.onrender.com/
- Size: 2.44 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TicTacToe-MultiPlayer-Game
Welcome to the TicTacToe Multiplayer Game! This application allows multiple players to engage in the classic TicTacToe game in real-time.

## Features
- Real-Time Multiplayer: Play TicTacToe with friends or other players in real-time.
- User Authentication: Secure login and registration system to keep track of player statistics.
- Interactive UI: A user-friendly interface that enhances the gaming experience.
## Technologies Used
- [](#) [](#) [](#)
- [](#) [](#)
- [](#) [](#)
- [](#)
## Installation [](#installation) [](#docker-deployment)
To set up the project locally, follow these steps:
1. Clone the Repository:
```bash
git clone https://github.com/IsmailBinMujeeb/TicTacToe-MultiPlayer-Game.git
cd TicTacToe-MultiPlayer-Game
```
2. Install Dependencies: Ensure you have Node.js and npm installed. Then, run:
```bash
npm install
```
3. Set Up Environment Variables:
- Duplicate the .example.env file and rename the copy to .env.
```bash
cp .example.env .env
```
- Open the .env file and configure the following variables:
```env
PORT=3000
SESSION_SECRET=
GOOGLE_CALLBACK_URL=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
DB_CONN_STR=
REDIS_URL=
```
4. Start the Application:
```bash
npm start
```
**The server will start, and you can access the application at http://localhost:3000.**
## Docker Deployment
For those who prefer using Docker:\
[Docker Image](https://hub.docker.com/r/ismailbinmujeeb/tic-tac-toe)
1. Build the Docker Image:
```bash
docker build -t tictactoe-multiplayer-game .
```
2. Run the Docker Container:
```bash
docker run -d -p 3000:3000 --name tictactoe-game tictactoe-multiplayer-game
```
3. Or pull the image
```bash
docker pull ismailbinmujeeb/tic-tac-toe
```
**The application will be available at http://localhost:3000.**
### Alternatively, you can use Docker Compose:
1. Start Services:
```bash
docker-compose up -d
```
This will set up the application along with any dependencies defined in the docker-compose.yml file.
## Contributing
We welcome contributions! If you'd like to contribute:
1. Fork the repository.
2. Create a new branch (git checkout -b feature/YourFeature).
3. Commit your changes (git commit -m 'Add YourFeature').
4. Push to the branch (git push origin feature/YourFeature).
5. Open a Pull Request.
**Please ensure your code adheres to the project's coding standards and includes appropriate tests.**