Install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
Install rabbitmq
brew install rabbitmq
Ensure hostname never changes (required for rabbitmq)
sudo scutil --set HostName myhost.local
Add hostname to /etc/hosts
127.0.0.1 localhost myhost myhost.local
Start rabbitmq
sudo rabbitmq-server -detached
Stop rabbitmq (just an FYI)
sudo rabbitmqctl stop
Download latest binary release
wget https://github.com/downloads/webmetrics/browsermob-proxy/browsermob-proxy-2.0-beta-3-bin.zip
Extract and rename
unzip browsermob-proxy*.zip
mv $( ls -d browsermob-proxy* ) browsermob-proxy
Make shell script executable
chmod 755 browsermob-proxy/bin/browsermob-proxy
Install pip
sudo easy_install pip
Install virtualenv
sudo pip install virtualenv
Checkout repository
git clone [email protected]:danmcc/har-rage.git harhacker
Build and install dependencies
virtualenv deps
Active virtualenv
source deps/bin/activate
Install requirements
pip install -Ur requirements.txt
Create sqlite database
python harhacker/manage.py syncdb
Active virtualenv
source deps/bin/activate
Run web
python harhacker/manage.py runserver
Run tasks
python harhacker/manage.py celeryd -l debug
- Use
python harhacker/manage.py shell
to experiment - If you checkout the project to a directory named
harhacker
you can use the following bash function to quickly interact with manage.py.