An open API service indexing awesome lists of open source software.

https://github.com/colyseus/create-colyseus-app

Create an empty Colyseus server project ready to bring your own implementation
https://github.com/colyseus/create-colyseus-app

colyseus create multiplayer

Last synced: 2 months ago
JSON representation

Create an empty Colyseus server project ready to bring your own implementation

Awesome Lists containing this project

README

          

# `create-colyseus-app`

An npm init template for kick starting your Colyseus server.

## :crossed_swords: Usage

```
npm create colyseus-app@latest ./my-server
```

## Structure

- `index.ts`: main entry point, register an empty room handler and attach [`@colyseus/monitor`](https://github.com/colyseus/colyseus-monitor)
- `MyRoom.ts`: an empty room handler for you to implement your logic
- `loadtest/example.ts`: scriptable client for the loadtest tool (see `npm run loadtest`)
- `package.json`:
- `scripts`:
- `npm start`: runs `ts-node index.ts`
- `npm run loadtest`: runs the [`@colyseus/loadtest`](https://github.com/colyseus/colyseus-loadtest/) tool for testing the connection, using the `loadtest/example.ts` script.
- `dependencies`:
- `colyseus`
- `@colyseus/monitor`
- `express`
- `devDependencies`
- `ts-node`
- `typescript`
- `@colyseus/loadtest`
- `tsconfig.json`: TypeScript configuration file

## License

MIT