Skip to content
jtellis edited this page Jan 29, 2015 · 8 revisions

####GitHub Repos
The new version of RI Community-Profiles is:

  • ProvidencePlan/Profiles

The installation instructions were created for an Ubuntu system

####Installation

Install Necessary System Packages

  • sudo apt-get install git postgresql-9.3 python-dev python-pip python-virtualenv nginx gunicorn supervisor libpq-dev postgresql-9.3-postgis-2.1 postgresql-contrib

Install Redis

Install and Setup PostgreSQL Database

Add System User for Application

  • sudo adduser communityprofiles

Install PostGIS2.0 or later

Switch User

  • sudo su - communityprofiles

Clone ProvidencePlan/Profiles repo.

  • git clone git@github.com:ProvidencePlan/Profiles.git

Create a virtual environment

  • virtualenv ENV
  • source ENV/bin/activate

Install requirements

  • cd Profiles/communityprofiles/
  • pip install -r requirements.txt

Copy and rename “local_settings.example.py” to “local_settings.py”

  • cp local_settings.example.py local_settings.py

Add Census API Key to Local Settings

Prepare Application Database

  • ./bootstrap_app.sh

Load geographies

  • You can find sample data in /census/tools/sample_data/
  • Ex. ./manage.py load_geographies census/tools/sample_data/pageo2010.sample.sf1 2010
  • For help run ./manage.py load_geographies --help
  • Geographies are created based on what is defined in local_settings SUM_LEVS

Run the Profiles api binary from the bin dir

  • configure the profiles api settings file to use your database and redis connection *./profiles_api settings.example.json :8080

Clone this wiki locally