os / rank-me

Home Page:http://www.rank-me.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

(optional) create a virtualenv with virtualenvwrapper:

mkvirtualenv rankme

Start by installing the requirements and set up your database:

pip install -r requirements/dev.txt
# Put your database URL in here in the form postgres://user:password@host/dbname or sqlite:////absolute/path
vim envdir/DATABASE_URL

Create the database:

./manage.py syncdb --all
./manage.py migrate --fake

Then run the development server:

./manage.py runserver

To run the tests:

./manage.py test game

Assets management

Make sure you have grunt and bower installed:

npm install -g bower grunt grunt-cli

Install project dependencies:

npm install
bower install

Compute LESS with grunt:

# compile once
grunt less

# keep looking at changes and recompile when needed
grunt

Deployment

  • Create a git tag
  • fab deploy:{{tag}}

Available settings

The following list contains the settings that can be set with environment variables. To set such a setting, create a file that has the same name as the setting in the envdir directory (for example if you want to override the DEBUG setting, create a file named envdir/DEBUG and put the value of the setting in the file).

  • ALLOWED_HOSTS (1 host / line)
  • DATABASE_URL (see https://github.com/kennethreitz/dj-database-url for the syntax)
  • DEBUG (put an empty string in the file to set DEBUG to false, or 1 to set it to true)
  • SECRET_KEY
  • STATIC_ROOT
  • STATIC_URL
  • SOCIAL_AUTH_TWITTER_KEY
  • SOCIAL_AUTH_TWITTER_SECRET
  • SLACK_API_TOKEN

Contribute

Any contribution welcome! Ideally use pull requests and make sure that the tests still pass (see above).

Backlog available on Trello.

About

http://www.rank-me.io


Languages

Language:Python 95.1%Language:JavaScript 4.8%Language:CSS 0.1%