Development

Getting Started

The simplest way to get started with development is to grab the ccav ansible playbooks and run them using the ansible tool against a blank Centos 6.4 x86_64 virtual machine using your preferred virtualization platform. The playbooks will install everything required to build, develop and deploy the application and ia always kept up-to-date for dependency testing and deployment purposes.

You may also follow these rough instructions to get up and running on Mac OS X with the Homebrew package management tool.

  1. Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
  1. Install python:
brew install python
  1. Install numpy:
pip install numpy
  1. Install gdal:
brew install gdal
  1. Install freetype:
brew install freetype
  1. Install mapserver:
brew install mapserver
  1. Install virtualenvwrapper:
pip install virtualenvwrapper.sh
  1. Make sure you have something like this setup in your bash profile:
#!/bin/bash

# Check if virtualenvwrapper.sh is available and source it
if $(which virtualenvwrapper.sh &> /dev/null); then
    source $(which virtualenvwrapper.sh)
fi
  1. Create a new virtual environment:
mkvirtualenv --system-site-packages ccav
  1. Clone the development repository:
hg clone https://bitbucket.org/ccaih/ccav
  1. Bootstrap, build and run:
cd /path/to/ccav
./bootstrap.sh
fab develop
dev webui:dev=yes
ccav

There is a nice ASCIINema based screencast of how to setup a full working development environment based on the above steps:

Table Of Contents

Previous topic

ccav 0.0 Documentation

Next topic

Data

This Page