An open API service indexing awesome lists of open source software.

https://github.com/phildini/cards-against-django

CAH done as a Django web app.
https://github.com/phildini/cards-against-django

Last synced: about 1 year ago
JSON representation

CAH done as a Django web app.

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/phildini/cards-against-django.png?branch=master)](https://travis-ci.org/phildini/cards-against-django)

cards-against-django
====================

CAH done as a Django web app.

Are you looking for a game that promotes team work, where there are no losers? [This Is Not That Game](http://www.ThisIsNotThatGame.com/).

Are you looking for a game to play with your family that is suitable for young children? [This Is Not That Game](http://www.ThisIsNotThatGame.com/).

Looking for a game to play with Grandma? [This Is Not That Game](http://www.ThisIsNotThatGame.com/).

Perhaps you are looking for a game to play at Church? [This Is Not That Game](http://www.ThisIsNotThatGame.com/).

Do you have a sick and twisted sense of humor (and know how to use a web browser)? You may be the perfect player for [This Is Not That Game](http://www.ThisIsNotThatGame.com/).

Vagrant
=======

Install [VirtualBox](https://www.virtualbox.org/)

$ gem install vagrant

$ vagrant up

$ vagrant ssh

The first time you log in, the database must be initialized:

$ syncdb

Start the app, from the Vagrant shell:

$ rs

Share and enjoy!

Sample manage shell snippets:

# drop model tables (but not Django users/permissions)
python manage.py sqlclear --settings=cah.settings.local cards | python manage.py dbshell --settings=cah.settings.local
# then syncdb

$ python manage.py shell --settings=cah.settings.local

import cards
cards.models.BlackCard.objects.get(id=1)
cards.models.WhiteCard.objects.all()
b = cards.models.BlackCard.objects.get(id=93)
b.replace_blanks((11, 94, 95))
b.replace_blanks((11, 94))
g = cards.models.Game.objects.get(id=1)

Dump any cards/cardset that have been created:

python manage.py dumpdata --settings=cah.settings.local --indent=4 cards > cards/fixtures/initial_data.json