India Biodiversity Portal (IBP) - A repository of information designed to harness and disseminate collective intelligence on the biodiversity of the Indian subcontinent.
Clone or download
Latest commit b34a2b3 Jul 4, 2018
Permalink
Failed to load latest commit information.
.settings deleted target and settings folders Jul 17, 2012
app-conf REFS : #986 minor cleanup Feb 5, 2018
grails-app REFS : #986 fixed observation datatable edit for removing a column ma… Feb 8, 2018
lib location input rework Jun 20, 2013
scripts first cut commit of merge May 16, 2014
serialized-php-parser-rev.16 including libraries for php un serializations May 2, 2013
src REFS : #986 fixed observation datatable edit for removing a column ma… Feb 8, 2018
userscripts REFS : #904 added snap to names without IBP hierarchy Jan 1, 2017
web-app REFS: #944 Aug 23, 2017
.bashrc REFS : #663 new recaptcha Oct 28, 2015
.bashrc_kk REFS :#944 minor login fix Jun 29, 2017
.classpath #961 intermediate commit for dataset, dataTable dataPackage upload Dec 2, 2017
.gitignore first cut commit of merge May 16, 2014
.project handling some corner cases in species upload rollback. needs to be te… Jul 25, 2014
.vimrc REFS : #253 intermediate commit for name list changes Sep 21, 2015
LICENSE Create LICENSE Jul 4, 2018
README Updated maps and wgp_maps to solr 4.4 (make sure the apache_dataimport Sep 23, 2013
README_BHUTAN readme file for bhutan migration/deployment refs #499 Dec 11, 2014
application.properties REFS : #944 minor fixes Oct 31, 2017
nameCurationFinal.dia REFS: #253 EOL error fixed and dia file and flowchart checked in Jun 26, 2015
nameCurationFinal.png REFS: #253 EOL error fixed and dia file and flowchart checked in Jun 26, 2015

README

* Install grails 1.3.7 http://grails.org/download/archive/Grails

* Install git http://git-scm.com/book/en/Getting-Started-Installing-Git

* Install postgresql http://wiki.postgresql.org/wiki/Detailed_installation_guides 
    a. sudo apt-get install postgresql postgresql-client pgadmin3
    b. sudo -u postgres psql postgres
        # \password postgres
    c. Edit pg_hba.conf and set authentication method to trust instead of peer for localhost
    d. createdb -Upostgres biodiv

* Get a copy of the application
    a. cd ~; mkdir git; cd git;
    b. git clone https://github.com/strandls/biodiv.git
    c. cd biodiv; 
    d. grails upgrade

* Install postGIS
    a. /etc/init.d/postgresql stop
    b. apt-get install postgresql-9.1-postgis
    c. Run following to make biodiv a spatially enabled database (required for map module)
        a. createlang -Upostgres plpgsql biodiv;
        b. psql -Upostgres -d biodiv -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
        c. psql -Upostgres -d biodiv -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql

* Install following plugins to convert and optimize images 
    a. audo apt-get install imagemagick
    b. sudo apt-get install jpegoptim

* Tune jvm memory settings for the application. Some of the commands that would be useful for development are mentioned in repoHome/.bashrc file. Add it to your bashrc profile settings as shown below  
    a. vim ~/.bashrc
    b. add line : source ~/git/biodiv/.bashrc
    c. save and run : source ~/.bashrc

* Run application 
    a. cd ~/git/biodiv
    b. grails run-app

* Setting the apache virtual host configuration 
    sudo ln -s ~/git/biodiv/app-conf/apache-virtualhost-conf /etc/apache2/sites-available/
    sudo ln -s ~/git/biodiv/app-conf/apache-virtualhost-conf /etc/apache2/sites-enabled/
    sudo a2enmod proxy proxy_connect proxy_ftp proxy_http rewrite include expires headers
    sudo /etc/init.d/apache2 restart

* Setting up host locally for dev  
    sudo vim /etc/hosts
    127.0.0.1       indiabiodiversity.localhost.org biodiv

* Install names parer https://github.com/GlobalNamesArchitecture/biodiversity 
    a. sudo gem install biodiversity

* app.rootDir in grails-app/conf/Config.groovy points to a directory where all application specific data files, templates and configuration files are stored. By default in development mode it points to app-conf folder in this repository.

* app.siteName, app.logo, app.favicon properties can be set to change the portal name, logo and favicon respectively