Create a new RoomKit multiplayer project
npm install @roomkit/createScaffolding tool for creating new RoomKit multiplayer projects.
Create a new RoomKit project with:
``bash`
npm create roomkit@latest
Or with npm 7+:
`bash`
npm create roomkit@latest my-game
Or with pnpm:
`bash`
pnpm create roomkit my-game
Or with yarn:
`bash`
yarn create roomkit my-game
Choose from three templates:
`bashSpecify project name
npm create roomkit@latest my-project
After Creation
`bash
cd my-project
npm install
npm run dev
`Make sure you have Redis running locally, or configure it in the
.env file.Requirements
- Node.js 18+
- Redis server
Project Structure
All templates include:
`
my-project/
├── src/
│ ├── gateway.ts # Gateway server
│ ├── worker.ts # Worker server
│ └── rooms/ # Your game rooms
├── package.json
├── tsconfig.json
├── .env.example
└── README.md
``- RoomKit Documentation
- Gateway API
- Worker API
- Client SDK
MIT