Skribble Clone
A drawing and guessing game inspired by Skribbl.io.
Tech Stack
Frontend
- Core: React, TypeScript, React Router DOM
- State Management: Zustand
- Styling & UI: Tailwind CSS, DaisyUI components, and React Icons
Backend
- Core: Go
- WebSockets:
gorilla/websocket - Concurrency: Goroutines and Channels for broadcasting payloads,
sync.Mutexfor safe game state management across concurrent client connections.
Getting Started
Prerequisites
- Node.js and npm/yarn installed.
- Go installed (1.18+ recommended).
1. Start the Go Backend
- Navigate to
backenddirectory. - Install the WebSocket dependency:
go get github.com/gorilla/websocket - Run the server:
The server will start listening on portgo run main.go8080.
2. Start the React Frontend
- Navigate to
frontenddirectory. - Install dependencies:
npm install - Start the Vite development server:
npm run dev