Skip to content

The Global Media Monitoring Project (GMMP) is the largest and longest longitudinal study on the gender in the world’s media. It is also the largest advocacy initiative in the world on changing the representation of women in the media. This is the survey tool used by GMMP researchers in over 114 countries.

License

Notifications You must be signed in to change notification settings

CodeForAfrica/gmmp

Repository files navigation

Installation

For ubuntu

sudo apt-get install libpq-dev
sudo apt-get install libpython-dev

Install a postgres db if you don't already have one

sudo apt-get install postgresql postgresql-contrib
sudo /etc/init.d/postgresql start

Install the Heroku toolbelt for deployment, database backup, etc

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

Grab a backup of the database.

pg_dump <Database URL> > /tmp/dump # You can get the url from the Heroku config. This seems to take a long time
sudo su - postgres
createuser gmmp -W # set password to gmmp
createuser c4saadmin -W # needed to prevent error in dump file
createdb gmmp --owner gmmp
psql U gmmp <  /tmp/dump # might get an error complaining the code4saadmin doesn't exist

You'll need to install postgres, psycopg as your development user

git clone https://github.com/Code4SA/gmmp.git
cd gmmp
mkdir env
virtualenv env
source env/bin/activate
pip install -r requirements.txt

About

The Global Media Monitoring Project (GMMP) is the largest and longest longitudinal study on the gender in the world’s media. It is also the largest advocacy initiative in the world on changing the representation of women in the media. This is the survey tool used by GMMP researchers in over 114 countries.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages