GithubHelp home page GithubHelp logo

giuseongit / cards_against_humanity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevinbongart/cards_against_humanity

2.0 1.0 0.0 1.22 MB

An unofficial online version of the Cards Against Humanity game.

Home Page: https://www.cardiganshumility.online

License: Other

Ruby 72.08% JavaScript 5.05% HTML 20.59% SCSS 2.28%

cards_against_humanity's Introduction

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

cards_against_humanity's People

Contributors

davidopluslau avatar dependabot-preview[bot] avatar dependabot[bot] avatar kevinbongart avatar khord avatar

Stargazers

 avatar  avatar

Watchers

 avatar

cards_against_humanity's Issues

Dockerize

Run the application inside a docker container

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.