Skip to content

avidas/cards_against_humanity

 
 

Repository files navigation

Unofficial Cards Against Humanity, Online

An unofficial online version of the Cards Against Humanity game. Pairs well with friends, booze and video chat.

Click here to play.

Put together by Kevin Bongart so he could play his beloved game with friends during tough times. Not affiliated with the official Cards Against Humanity company, but you should absolutely buy their game because it's a lot more fun in person. Remixed under Creative Commons BY-NC-SA 2.0 license.

The cards were imported from json-against-humanity.

Development setup

This is a Ruby on Rails application that requires Ruby, PostgreSQL and Redis.

  1. Install Ruby, preferrably with rbenv
  2. Install dependencies:
$ gem install bundler
$ bundle install
$ yarn install
  1. Create, migrate and populate the database:
$ bundle exec rails db:create db:migrate db:seed
  1. Start the web server and the background job processor:
$ bundle exec rails server
$ bundle exec sidekiq

Streaming game updates to clients goes through background jobs, so Sidekiq is required (otherwise, players need to refresh the page manually).

Alternatively, you can use an application process manager to start both the web server and background job processor. Foreman is a good Ruby-based option, but there are many alternatives to suit your needs:

$ gem install foreman
$ foreman start web=1,worker=1
  1. Open a browser to http://localhost:3000

Running the test suite

bundle exec rspec

About

An unofficial online version of the Cards Against Humanity game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 72.0%
  • HTML 20.6%
  • JavaScript 5.1%
  • CSS 2.3%