Giter Club home page Giter Club logo

haxroomie's Introduction

haxroomie

Discord

Haxroomie is set of tools run headless HaxBall rooms without GUI.

Rooms can be run

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.

Links

Contributing and Development

  1. Clone/fork the repository.
  2. Install main dependencies
npm install
  1. Install dependencies and create links between the subpackages (handled by lerna).
npm run bootstrap
  1. haxroomie-cli can be run from projects root.
npm start

I accept well documented pull request to master branch.

Debugging

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.

Version Control

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.

Running tests

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

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.

haxroomie's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.