Skip to content

wfp-ose/sparc2

Repository files navigation

Spatial Analysis Risk Calendar, Version 2.x (sparc2)

image

Description

Spatial Analysis Risk Calendar, Version 2.x (sparc2)

Development Environment

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).

Production Environment

TODO

pip install git+git://github.com/wfp-ose/sparc2.git@master

Static Development

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

About

Spatial Analysis Risk Calendar (SPARC), Version 2.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published