Spatial Analysis Risk Calendar, Version 2.x (sparc2)
To set up a development environment, use the sparc2-ansible Ansible project. Follow the installation instructions from the Ansible website to set up Ansible on your host machine.
First, clone the repo into your local environment.
git clone https://github.com/wfp-ose/sparc2-ansible.git sparc2-ansible.git
# or
git clone git@github.com:wfp-ose/sparc2-ansible.git sparc2-ansible.git
Then, configure your local Vagrantfile and Ansible vars for your environment.
Then, to deploy, simply run vagrant up within the directory.
# cd into sparc2-ansible directory
vagrant up
If you need to re-provision for any idea, just run vagrant provision and the ansible script will run again.
# cd into sparc2-ansible directory
vagrant provision
By default, the guest server's web UI is available on port 8000 (http://localhost:8000/) and PostGIS is available on port 5432 with db / user / pass (sparc2 / sparc2 / sparc2).
TODO
pip install git+git://github.com/wfp-ose/sparc2.git@master
For static development, go to the sparc2/static/sparc2/ folder.
If you haven't already upgraded NodeJS to the latest version, you can do it with the following.
http://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
# Following is optional line. Not usually required for gulp.
sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/node