Rails engine that provides geospatial models for Hyrax repository applications.
brew install gdal
.sudo apt-get install gdal-bin
.GeoWorks requires the image generation library Simple Tiles.
Mac OS X:
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 GeoWorks application from a template:
$ rails new app-name -m https://raw.githubusercontent.com/samvera-labs/geo_works/master/template.rb
$ cd app-name
$ rake hydra:server
Add GeoWorks models to an existing Hyrax application:
gem 'geo_works'
to your Gemfile.bundle install
rails generate hyrax:install
rails generate geo_works:install -f
bundle install
rake engine_cart:generate
rake geo_works:dev_servers
rake ci
To run tests separately:
$ rake geo_works: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.
Execute the following command in the geo_works 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_works directory:
$ docker-compose up -d
Execute the following commands:
$ git clone https://github.com/geoconcerns/geoserver-vagrant.git
$ cd geoserver-vagrant/
$ vagrant up