Rails application for developing Hydra Geo models. Built around Curation Concerns engine.
- Solr
- Fedora Commons digital repository
- A SQL RDBMS (MySQL, PostgreSQL), though note that SQLite will be used by default if you're looking to get up and running quickly
- Redis, a key-value store
- ImageMagick with JPEG-2000 support
- GDAL
- You can install it on Mac OSX with
brew install gdal
. - On Ubuntu, use
sudo apt-get install gdal-bin
.
- You can install it on Mac OSX with
- GeoServer (Optional)
GeoConcerns requires the image generation library Simple Tiles.
Mac OS X:
- Install via Homebrew:
brew install simple-tiles
Linux:
-
Install dependencies:
libgdal-dev libcairo2-dev libpango1.0-dev
-
Compile:
$ git clone git@github.com:propublica/simple-tiles.git $ cd simple-tiles $ ./configure $ make && make install
Create and run a new GeoConcerns application from a template:
$ rails new app-name -m https://raw.githubusercontent.com/projecthydra-labs/geo_concerns/master/template.rb
$ cd app-name
$ rake hydra:server
Add GeoConcerns models to an existing CurationConcerns application:
- Add
gem 'geo_concerns'
to your Gemfile. bundle install
rails generate curation_concerns:install
rails generate geo_concerns:install -f
bundle install
rake engine_cart:generate
rake geo_concerns:dev_servers
rake ci
To run tests separately:
$ rake geo_concerns:test_servers
Then, in another terminal window:
$ rake spec
To run a specific test:
rspec spec/path/to/your_spec.rb:linenumber
-
Make sure you have docker engine, docker-machine, and docker-compose installed.
- Docker Toolbox: https://www.docker.com/products/docker-toolbox
-
Execute the following command in the geo_concerns directory:
$ source ./run-docker.sh
-
To stop the server and remove port forwarding:
$ docker-compose stop $ killall ssh
-
Make sure you have docker engine and docker-compose installed.
-
Execute the following commands in the geo_concerns directory:
$ docker-compose up -d
-
Make sure you have VirtualBox and Vagrant installed.
-
Execute the following commands:
$ git clone https://github.com/geoconcerns/geoserver-vagrant.git $ cd geoserver-vagrant/ $ vagrant up