Elite Dodgeball website
HTML Python JavaScript CSS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
elite
reggie
static
tests
.gitignore
.htaccess
.python-version
README.md
fabfile.py
manage.py
mysite.fcgi
oauth.json
requirements.txt

README.md

Elite Dodgeball

New homepage design for Elite Dodgeball.

Running Locally

The big assumption is that you're on OSX. If not, you'll need to instal MySQL and Python 3.4 (we're running 3.4.2 in production).

Setup

Start your local MySQL server.

$ mysql.server start

Install pyenv.

$ brew update
$ brew install pyenv
$ brew install pyenv-virtualenv

Create your Python environment.

$ pyenv install 3.4.2
$ pyenv virtualenv 3.4.2 elite
$ pip install -r requirements.txt

Update your /elite/settings.py values. (The DATABASES['default']['HOST'] and DATABASES['default']['PORT'] values are probably fine.)

DEBUG = True

DATABASES = {
	'default': {
		'NAME': 'database-name',
		'USER': 'database-user',
		'PASSWORD': 'database-password',
	}
}

ANYMAIL = {
	'MAILGUN_API_KEY': 'api-key',
}

STRIPE_API_KEY = 'api-key'

Make sure your migrations are updated.

$ python manage.py migrate

Now run your debug server.

$ python manage.py runserver

Running Tests

Django's manage.py helps us run tests located in the /tests/ directory.

$ python manage.py test tests/

Deploying to Production

We use Fabric to facilitate deployment.

$ fab deploy