Skip to content

USGCRP/gcis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

29fa35c · Jun 12, 2017
Jul 28, 2015
May 8, 2017
Apr 13, 2017
Jun 12, 2017
Jun 12, 2017
Apr 6, 2017
May 9, 2016
May 8, 2017
Apr 14, 2017
Jan 27, 2015
Mar 31, 2015
Jun 12, 2017
Jan 28, 2015
Jun 12, 2017
Jun 12, 2017
Jun 12, 2017
May 8, 2017
Jan 7, 2015

Repository files navigation

Global Change Information System

Build Status Coverage Status

This is the HTML front end and API for the Global Change Information System (GCIS).

This portion of the GCIS is called Tuba.

Prerequisites :

- PostgreSQL
- Perl 5.20
- uuid-dev package
- A recent raptor (<http://librdf.org/raptor>)

On Ubuntu 14.04, they can be installed with:

- sudo apt-get install postgresql-contrib-9.3 libpg-hstore-perl \
  postgresql libuuid1 uuid-dev make openssl libssl-dev libpq-dev \
  graphviz libxml2 raptor2-utils curl perlbrew

Instantiate Perlbrew environment:

perlbrew init
perlbrew install perl-5.20.0
perlbrew install-cpanm
perlbrew install-patchperl
perlbrew switch perl-5.20.0

Install of Perl prerequisites :

cd gcis
cpanm --installdeps .

Customize install_base (optional) :

echo $(dirname $(dirname $(which perl)))
vi Build.PL
# use the ouput of the command above as the value for --install_base below
# or create a file $HOME/.modulebuildrc, that contains :
#       install     --install_base /your/directory/here

Software installation :

perl Build.PL --install_base=(see above)
./Build
./Build test
./Build install

Database configuration :

You may need to add these directives to postgresql.conf, under "CUSTOMIZED OPTIONS" for some versions of postgreSQL :

custom_variable_classes = 'audit'   # list of custom variable class names
audit.username = 'unknown'
audit.note = ''

Database installation :

sudo su - postgres -c "createuser -P -s -e $(whoami)"
./Build dbinstall

Configuration :

cp eg/Tuba.conf.sample Tuba.conf
sudo mkdir /var/local/projects
sudo chown $(whoami):$(whoami) /var/local/projects

Starting :

hypnotoad bin/tuba

Starting in dev mode :

morbo -l http://0.0.0.0:3000 bin/tuba