<commit_before>Install
=========

This is where you write how to get a new laptop to run this project.<commit_msg>add an install.rst with instructions for how to get mentorup running on your local development machine<commit_after>Install
=========

Create a virtualenv
-------------------

To get Mentor Up running locally, you first need to make a virtualenv. 
If you have virtualenvwrapper installed, then you can just type::

	$ mkvirtualenv mentorup

Otherwise, you can install virtualenv with::

	$ pip install virtualenv

And create the virtualenv with::

	$ virtualenv mentorup

Activate the virtualenv::

	$ source mentorup/bin/activate

Configure the Mentor Up project
-------------------------------

Install the requirements::

	$ cd /path/to/mentorup/repo
	(mentorup)$ pip install -r requirements/local.txt
	...

Sync and migrate the database and start the server::

	$ python mentorup/manage.py syncdb
	$ python mentorup/manage.py migrate
	$ python mentorup/manage.py runserver

NOTE: if you're on a Mac, the easiest way to create a 
PostgreSQL database is to install Postgres.app_ and pgAdmin3_.

.. _pgAdmin3: http://www.pgadmin.org/download/macosx.php

.. _Postgres.app: http://postgresapp.com
	
{'fraction_non_alphanumeric': 0.11973575557390587, 'fraction_numerical': 0.0016515276630883566, 'mean_word_length': 3.4558823529411766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2434972', 'n_tokens_mistral': 362, 'n_tokens_neox': 335, 'n_words': 137}