Giter VIP home page Giter VIP logo

sparc2's Introduction

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

https://travis-ci.org/wfp-ose/sparc2.png

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 [email protected]: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

sparc2's People

Contributors

pjdufour avatar ppasq avatar ilpise avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.