This is the backend server for the Skribbl clone game, handling real-time communication, game state management, and player interactions using Express and Socket.io.
🔗 Front-End Repository: Yagnik-Gohil/skribbl
The goal was to create a robust backend that supports real-time multiplayer gameplay, ensuring seamless synchronization between players. Implementing this with Express and Socket.io provided an opportunity to delve deep into WebSocket communications and server-side game logic.
- Node.js
- npm or yarn
-
Clone the repository:
git clone https://github.com/Yagnik-Gohil/skribbl-server.git cd skribbl-server -
Install dependencies:
npm install # or yarn install -
Start the server:
npm run dev # or yarn devThe server will start on
http://localhost:3001by default.
- Real-Time Communication: Utilizes Socket.io for bi-directional communication between clients and the server.
- Game Management: Handles game rooms, player sessions, drawing events, and chat messages.
- API Endpoints: Provides RESTful endpoints for room creation, player management, and game state queries.
Contributions are welcome! Here's how you can help:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/YourFeatureName
-
Make your changes and commit them:
git commit -m 'Add your feature' -
Push to the branch:
git push origin feature/YourFeatureName
-
Open a pull request.
This project is licensed under the MIT License.