nidico / policycompass-services

web services for the policy compass frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Policy Compass Services

Web Services for the Policy Compass

Manual

This manual is tested under Ubuntu 14.04!

Requirements

  • Python 3 should be already installed, but make sure with the following command:
  python3
  • Install the following packages:
  apt-get install python-virtualenv python3-dev libpq-dev
  • Install PostgreSQL:
  apt-get install postgresql

Installation

  • Create a new directory for the project
  mkdir services
  • Create a Python Virtual Environment with Python 3 and activate it
  virtualenv services --python=python3
  cd services
  source bin/activate
  git clone git@github.com:policycompass/policycompass-services.git
  cd policycompass-services
  git submodule init
  git submodule update
  git submodule foreach git checkout master
  • Install the Requirements
  pip install -r requirements.txt
  • Create a local settings file
  cp config/settings.sample.py config/settings.py
	python manage.py syncdb
	python manage.py migrate
	python manage.py loaddata metrics users references
  • Start the application
	python manage.py runserver

About

web services for the policy compass frontend