Git Product home page Git Product logo

fayeee-e / gmmp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeforafrica/gmmp

0.0 0.0 0.0 9.48 MB

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.

Home Page: http://app.gmmp.ngo

License: Apache License 2.0

Python 87.85% JavaScript 0.91% CSS 0.18% HTML 10.83% Dockerfile 0.16% Shell 0.07%

gmmp's Introduction

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

gmmp's People

Contributors

esirk avatar kilemensi avatar longhotsummer avatar davidlemayian avatar ascii-dev avatar dependabot-preview[bot] avatar mattadendorff avatar dependabot[bot] avatar adieyal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.