Haxroomie is set of tools run headless HaxBall rooms without GUI.
Rooms can be run
- Programmatically using haxroomie-core
- From the command line using haxroomie-cli
With haxroomie you can
- run rooms without desktop environment
- run multiple rooms with ease
- use a modular plugin manager made by saviola
- monitor and control rooms from command line
- use the API to create an interface to run rooms
If you are looking to how to run rooms in your VPS then you probably want haxroomie-cli.
This repository is a monorepo containing the main API haxroomie-core and interfaces using the API.
- haxroomie-core (API)
- haxroomie-cli (Command Line Interface)
- API Documentation (API documentation and tutorials)
- Clone/fork the repository.
- Install main dependencies
npm install
- Install dependencies and create links between the subpackages (handled by lerna).
npm run bootstrap
- haxroomie-cli can be run from projects root.
npm start
I accept well documented pull request to master branch.
To enable more extensive logging for development, you can set environment variable NODE_ENV=development
.
For even more extensive logging you can enable Puppeteers debug logs by setting environment variable DEBUG="puppeteer:*"
. See more about debugging puppeteer at https://developers.google.com/web/tools/puppeteer/debugging.
Development is done on the master
branch and publishing to npm is also done
from master
. If major update happens, then the old version will be branched
and new version will continue as master
. Feature branches are highly engouraced.
Tests can be ran with npm test
in the projects root, but they require a
token for the HaxBall room. The token(s) is loaded from environmental
variables.
e.g.
HR_TEST_TOKEN1="thr1.AAAAAF3nhJtzT2JftBYPmA.gBZ2x1ST7HU"
HR_TEST_TOKEN2="thr1.AAAAAF3nlPdWTSwonQ8zXw.KUYmmWsmPysfdaQ"
Currently you only need one test token, but in the future there might be some tests for multiple rooms.
Publishing to npm is handled by lerna can be done with
npm run publish
This will build docs, format the JavaScript using linter, bump versions and publish all packages under ./packages
.