OM2048 is a multiplayer version of the classic 2048 game. There is one single canvas with 10.000 games, where all players can make moves that are shared with everyone.
- Frontend: React 19, Vite
- Backend: Express.js, Socket.IO
- Database: Redis
- Language: TypeScript
- Package Manager: Bun
-
Clone the repository:
git clone https://github.com/Luca1905/OM2048 cd OM2048 -
Install dependencies:
bun install
-
Set up environment variables: Create a
.envfile in the root directory with the following variables:cp .env.example .env -
Start Redis server:
redis-server
-
Start the development servers:
In one terminal, start the backend:
bun run dev:backend
In another terminal, start the frontend:
bun run dev:frontend
-
Open your browser and navigate to
http://localhost:5173
bun run dev:frontend- Start frontend development serverbun run dev:backend- Start backend development serverbun run typecheck- Run TypeScript type checkingbun run check- Run Biome linterbun run check:write- Run Biome linter and fix issues
OM2048/
├── src/
│ ├── client/ # Frontend React application
│ ├── server/ # Backend Express server
│ └── shared/ # Shared files
├── public/ # Static assets
