DevelopmentΒΆ

The following installation instructions are for Ubuntu.

  1. Install dependencies if they are not already installed. (for platforms other than Ubuntu, follow the installation instructions):

    $ sudo apt-get install git python-pip python-dev postgresql postgresql-server-dev-all
    
  2. Clone or download the CAQE repository from Github: http://github.com/mcartwright/CAQE , e.g.

    $ git clone https://github.com/mcartwright/CAQE.git
    $ cd CAQE
    
  3. (optional) Install virtualenv (if not installed already) and create a caqe virtual environment

    $ sudo pip install virtualenv
    $ virtualenv ~/Envs/caqe
    $ source ~/Envs/caqe/bin/activate
    
  4. Install the python module dependencies in requirements.txt using pip.:

    $ pip install -r requirements.txt
    
  5. Configure testing variables as described in Test Configurations.

  6. Set APP_MODE to DEVELOPMENT:

    $ export APP_MODE=DEVELOPMENT
    
  7. Generate secret_keys.py (don’t check this file into source control):

    $ cd src
    $ python generate_key_file.py
    
  8. Create the database:

    $ python create_db.py
    
  9. Add 0.0.0.0     caqe.local to a new line in your /etc/hosts file.

  10. Start the development server:

    $ python run.py
    
  11. Go to http://caqe.local:5000/mturk_debug to test the configuration.

  12. Stop the server with ctrl-c.