An unofficial online version of the Cards Against Humanity game. Pairs well with friends, booze and video chat.
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.
This is a Ruby on Rails application that requires Ruby, PostgreSQL and Redis.
- Install Ruby, preferrably with
rbenv
- Install dependencies:
$ gem install bundler
$ bundle install
$ yarn install
- Create, migrate and populate the database:
$ bundle exec rails db:create db:migrate db:seed
- 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
- Open a browser to http://localhost:3000
bundle exec rspec