Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Developer Documentation

A Lee edited this page May 4, 2016 · 4 revisions

Setup

  • [Linux](Linux Installation)

Starting the development server

  • Override Django settings in local.py and set DATABASES['default'] to the appropriate database engine. We use postgres in development and production.
  • set up the database by running fab testdata - this creates and populates a test database
  • Start the local django dev server via fab server and visit http://localhost:8000 in your browser. Bind to an external IP address via fab server:ip=<replace-with-your-ip-address>
  • If you need access to real-time features you will need to start the sockjs server via fab sockjs
  • run unit tests via fab test

Test experimenter and experiments

If you created a test database via fab testdata you should have an experimenter with the following credentials:

After logging in you should be able to access the experimenter dashboard and register test participants.

Production deployment

We use supervisord, nginx, uwsgi, and haproxy for our production deployment. Basic scripts for this are located in the deploy directory. An improved Docker-based deployment is in the works.

Resources and Links

Python IDE

We are very grateful to JetBrains for providing open source licenses for PyCharm. PyCharm also offers a free community edition that is well worth the download.

Programming resources