Giter Club home page Giter Club logo

metastore-test_data's Introduction

Metastore::TestData

Generators and tasks to install jetty and fetch test-data from the metastore project

Installation

Add to your application's Gemfile:

gem 'jettywrapper'
gem 'metastore-test_data', :github => 'dtulibrary/metastore-test_data'

And then execute:

bundle install

Usage

Initial setup:

rails generate metastore:test_data:install

This will copy Jetty and some configuration into your project directory. After this you can fetch the latest metastore configuration and test-data into the project by

rake metastore:testdata:setup:maven

(Requires access to the DTIC maven repository. I.e. you must be on the DTIC network). If you want to test modified metastore configuration and/or new test-data from a local build of the metastore project you can copy from your local maven repository (i.e. from ~/.m2) by

rake metastore:testdata:setup:local

After this you can start a Jetty (hosting a Solr) and index the test data into Solr by

rake jetty:start
rake metastore:testdata:index

You should now have a Solr available on http://localhost:8983/solr with a small set of test data.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.