Ruby Java XSLT HTML JavaScript CSS Other
Pull request Compare This branch is 334 commits ahead, 1 commit behind dimus:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
features
lib
log
public
script
solr
spec
tmp
vendor
.gitignore
.rspec
.ruby-gemset
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Global Names Index v.2

Continuous Integration Status Dependency Status

Indexes occurances of biological scientific names in the world, normalizes and reconsiles lexical and taxonomic variants of the name strings.

Dependencies

Install Ruby (see version in .ruby-version) Install bundle gem Install Java JDK 6-8 Install Redis

Run

bundle install

Testing

rake db:drop:all
rake db:create:all
rake db:migrate
rake db:migrate RAILS_ENV=test
rake db:seed
rake db:seed RAILS_ENV=test
rake solr:start ( or rake solr:run in a separate terminal window)
rake solr:build
rspec

Also see .travis.yml org as an example

Working with seed data

Use rake "db:seed RAILS_ENV=your_env" to populate tables in development, test and production environments. Different environments differ in how and which tables are populated. To add more data for testing/development purposes use

rake db:addnames

the command reads data from spec/files/addnames.csv to add more records to the system.

Resolver worker

RAILS_ENV=production RAKE_ENV=production QUEUE=name_resolver rake resque:work

Assets precompiling

bundle exec rake assets:precompile

Rebuilding canonical names index for production

from the machine with solr go to gni dir and run

rake db:solr:build RAILS_ENV=production

Copyright

Authors: Dmitry Mozzherin, David Shorthouse

Copyright (c) 2012-2013 Marine Biological Laboratory. See LICENSE.txt for further details.