vypxl / node_against_humanity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node against humanity

You can use a nodejs server to play Cards against humanity online! (self-hosted!)

Disclaimer

I do not own Cards against humanity which is licensed under Creative Commons BY-NC-SA 2.0 license. The english card data is taken from crhallberg's repo which is also licensed under Creative Commons BY-NC-SA 2.0 license. Please see CaH FAQ for more information. The german card data is based upon Prior99's repo, which is licensed under Gnu GPL.

Usage

Just install NodeJS and (Git)[https://git-scm.com/]. Then open a Console (Win+R) and type 'cmd' without quotes/a Terminal (On mac in your application drawer, on linux you know it :)), go into the directory you want to hav CaH in, and type git clone https://github.com/colonlc/node_against_humanity.git and Enter, then cd node_against_humanity Enter, then npm install -g yarn, then yarn install, then yarn start. Now you have your server running! Others can now connect to your pc with their browser under http://[your ipv4 or ipv6 address]:8080/. You connect here.

If you want the German cards, change 'en' to 'de' in config.json.

Config

You can edit the config file to change

  • card language "lang": values: "de", "en"
  • points required to win a game: "pointsToWin": values: <Number bigger than 0>
  • Idle Time in milliseconds after round "idleTime": values: <Number bigger than 0>

About

License:MIT License


Languages

Language:JavaScript 68.2%Language:HTML 22.0%Language:CSS 9.8%