<commit_before># Welcome to Gittip [<img height="26px" src="www/assets/%25version/gittip.opengraph.png"/>](https://www.gittip.com/)

[![Build Status](http://img.shields.io/travis/gittip/www.gittip.com/master.svg)](https://travis-ci.org/gittip/www.gittip.com)
[![Coverage Status](https://img.shields.io/coveralls/gittip/www.gittip.com.svg)](https://coveralls.io/r/gittip/www.gittip.com?branch=master)
[![HuBoard badge](http://img.shields.io/badge/Hu-Board-7965cc.svg)](https://huboard.com/gittip/www.gittip.com)
[![Open Bounties](https://api.bountysource.com/badge/team?team_id=423&style=bounties_received)](https://www.bountysource.com/teams/gittip/issues)

Gittip is a weekly gift exchange, helping to create a culture of generosity.
If you'd like to learn more, check out <https://gittip.com/about>.
If you'd like to contribute to Gittip, check out <http://building.gittip.com>.

Quick Start
===========

Local
-----

Given Python 2.7, Postgres 9.3, and a C/make toolchain:

```
$ git clone <EMAIL>@github.com:gittip/www.gittip.com.git
$ cd www.gittip.com
$ sudo -u postgres createuser --superuser $USER
$ createdb gittip
$ make schema data
$ make run
```

And/or:

```
$ make test
```

[Read more](#table-of-contents).


Vagrant
-------

Given VirtualBox 4.3 and Vagrant 1.5.4:

```
$ vagrant up
```

[Read more](#vagrant-1).


Docker
-------

Given some version(?) of Docker:

```
$ docker build -t gittip .
$ docker run -p 8537:8537 gittip
```

[Read more](#docker-1).


Table of Contents
=================

 - [Installation](#installation)
  - [Dependencies](#dependencies)
  - [Building](#building)
  - [Launching](#launching)
  - [Vagrant](#vagrant)
  - [Docker](#docker)
  - [Help!](#help)
 - [Configuration](https://github.com/gittip/www.gittip.com/wiki/Configuration)
 - [Modifying CSS](#modifying-css)
 - [Testing](#testing-)
 - [Setting up a Database](#local-database-setup)
 - [API](#api)
  - [Implementations](#api-implementations)
 - [Glossary](#glossary)


Installation
============

Thanks for hacking on Gittip! Be sure to review
[CONTRIBUTING](https://github.com/gittip/www.gittip.com/blob/master/CONTRIBUTING.md#readme)
as well if that's what you're planning to do.


Dependencies
------------

Building `www.gittip.com` requires [Python
2.7](http://python.org/download/releases/2.7.4/), and a gcc/make toolchain.

All Python library dependencies are bundled in the repo (under `vendor/`). If
you are receiving issues from `psycopg2`, please [ensure that its needs are
met](http://initd.org/psycopg/docs/faq.html#problems-compiling-and-deploying-psycopg2).

On Debian or Ubuntu you will need the following packages:

    $ sudo apt-get install libpq5-dev libpq-dev python-dev postgres-contrib

To configure local Postgres create default role and database:

    $ sudo -u postgres createuser --superuser $USER
    $ createdb gittip

If you are getting an error about `unknown argument: '-mno-fused-madd'` when
running `make`, then add
`Wno-error=unused-command-line-argument-hard-error-in-future` to your
`ARCHFLAGS` environment variable and run `make clean env` again (see [this Stack Overflow answer
for more information](http://stackoverflow.com/a/22355874/347246)):

    $ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future make clean env


Building
--------

All Python dependencies (including virtualenv) are bundled with Gittip in the
vendor/ directory. Gittip is designed so that you don't manage its<commit_msg>Put postgresql-9.3 in ubuntu/debian install deps<commit_after># Welcome to Gittip [<img height="26px" src="www/assets/%25version/gittip.opengraph.png"/>](https://www.gittip.com/)

[![Build Status](http://img.shields.io/travis/gittip/www.gittip.com/master.svg)](https://travis-ci.org/gittip/www.gittip.com)
[![Coverage Status](https://img.shields.io/coveralls/gittip/www.gittip.com.svg)](https://coveralls.io/r/gittip/www.gittip.com?branch=master)
[![HuBoard badge](http://img.shields.io/badge/Hu-Board-7965cc.svg)](https://huboard.com/gittip/www.gittip.com)
[![Open Bounties](https://api.bountysource.com/badge/team?team_id=423&style=bounties_received)](https://www.bountysource.com/teams/gittip/issues)

Gittip is a weekly gift exchange, helping to create a culture of generosity.
If you'd like to learn more, check out <https://gittip.com/about>.
If you'd like to contribute to Gittip, check out <http://building.gittip.com>.

Quick Start
===========

Local
-----

Given Python 2.7, Postgres 9.3, and a C/make toolchain:

```
$ git clone git@github.com:gittip/www.gittip.com.git
$ cd www.gittip.com
$ sudo -u postgres createuser --superuser $USER
$ createdb gittip
$ make schema data
$ make run
```

And/or:

```
$ make test
```

[Read more](#table-of-contents).


Vagrant
-------

Given VirtualBox 4.3 and Vagrant 1.5.4:

```
$ vagrant up
```

[Read more](#vagrant-1).


Docker
-------

Given some version(?) of Docker:

```
$ docker build -t gittip .
$ docker run -p 8537:8537 gittip
```

[Read more](#docker-1).


Table of Contents
=================

 - [Installation](#installation)
  - [Dependencies](#dependencies)
  - [Building](#building)
  - [Launching](#launching)
  - [Vagrant](#vagrant)
  - [Docker](#docker)
  - [Help!](#help)
 - [Configuration](https://github.com/gittip/www.gittip.com/wiki/Configuration)
 - [Modifying CSS](#modifying-css)
 - [Testing](#testing-)
 - [Setting up a Database](#local-database-setup)
 - [API](#api)
  - [Implementations](#api-implementations)
 - [Glossary](#glossary)


Installation
============

Thanks for hacking on Gittip! Be sure to review
[CONTRIBUTING](https://github.com/gittip/www.gittip.com/blob/master/CONTRIBUTING.md#readme)
as well if that's what you're planning to do.


Dependencies
------------

Building `www.gittip.com` requires [Python
2.7](http://python.org/download/releases/2.7.4/), and a gcc/make toolchain.

All Python library dependencies are bundled in the repo (under `vendor/`). If
you are receiving issues from `psycopg2`, please [ensure that its needs are
met](http://initd.org/psycopg/docs/faq.html#problems-compiling-and-deploying-psycopg2).

On Debian or Ubuntu you will need the following packages:

    $ sudo apt-get install postgresql-9.3 postgres-contrib libpq5-dev libpq-dev python-dev

To configure local Postgres create default role and database:

    $ sudo -u postgres createuser --superuser $USER
    $ createdb gittip

If you are getting an error about `unknown argument: '-mno-fused-madd'` when
running `make`, then add
`Wno-error=unused-command-line-argument-hard-error-in-future` to your
`ARCHFLAGS` environment variable and run `make clean env` again (see [this Stack Overflow answer
for more information](http://stackoverflow.com/a/22355874/347246)):

    $ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future make clean env


Building
--------

All Python dependencies (including virtualenv) are bundled with Gittip in the
vendor/ directory. Gittip is designed so that you don't manage its
{'fraction_non_alphanumeric': 0.16609244903818549, 'fraction_numerical': 0.015503875968992248, 'mean_word_length': 4.238345864661654, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 20, 'lorem ipsum': 0, 'www.': 26, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5116250', 'n_tokens_mistral': 2591, 'n_tokens_neox': 2368, 'n_words': 569}