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. #. Install `Homebrew `_: .. code-block:: sh ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" #. Install python: .. code-block:: sh brew install python #. Install numpy: .. code-block:: sh pip install numpy #. Install gdal: .. code-block:: sh brew install gdal #. Install freetype: .. code-block:: sh brew install freetype #. Install mapserver: .. code-block:: sh brew install mapserver #. Install virtualenvwrapper: .. code-block:: sh pip install virtualenvwrapper.sh #. Make sure you have something like this setup in your bash profile: .. code-block:: bash #!/bin/bash # Check if virtualenvwrapper.sh is available and source it if $(which virtualenvwrapper.sh &> /dev/null); then source $(which virtualenvwrapper.sh) fi #. Create a new virtual environment: .. code-block:: sh mkvirtualenv --system-site-packages ccav #. Clone the development repository: .. code-block:: sh hg clone https://bitbucket.org/ccaih/ccav #. Bootstrap, build and run: .. code-block:: sh 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: - https://asciinema.org/a/8300