How to run things locallyΒΆ

  1. Installing RabbitMQ.

    $ sudo apt-get install rabbitmq-server
  2. Setup RabbitMQ.

    $ sudo rabbitmqctl add_vhost /pgraph
    $ sudo rabbitmqctl add_user pgraph passw0rd
    $ sudo rabbitmqctl set_permissions -p /pgraph pgraph ".*" ".*" ".*"
    $ sudo rabbitmqctl delete_user guest
  3. Cloning repository.

    $ git clone
    $ cd pgraph
    $ git submodule init
    $ git submodule update
  4. Createing virtual environment.

    $ virtualenv /path/to/venv
    $ . /path/to/venv/bin/activate
  5. Installing pgraph.

    (venv)$ cd /path/to/pgraph
    (venv)$ python develop


    (venv)$ pip install --no-use-wheel pgraph


    Not use pip install pgraph. See also “Known issue with the packages that depends on py-deps”.

  6. Running celery worker.

    (venv)$ CONFIG_FILE=/path/to/pgraph/development.ini celery -A pgraph.tasks worker --loglevel=info
  7. Running pserve from another venv session.

    (venv)$ pserve /path/to/pgraph/development.ini