cooljith91112 / create-colyseus-app

npm init template for bootstraping an empty Colyseus server

Home Page:https://docs.colyseus.io/getting-started/server/#creating-a-barebones-colyseus-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create-colyseus-app

An npm init template for kick starting a Colyseus server in TypeScript.

⚔️ Usage

npm init colyseus-app

Structure

  • index.ts: main entry point, register an empty room handler and attach @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 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

About

npm init template for bootstraping an empty Colyseus server

https://docs.colyseus.io/getting-started/server/#creating-a-barebones-colyseus-server

License:MIT License


Languages

Language:JavaScript 100.0%