Giter Club home page Giter Club logo

bcail / spotlight Goto Github PK

View Code? Open in Web Editor NEW

This project forked from projectblacklight/spotlight

0.0 2.0 0.0 2.42 MB

Enable librarians, curators, and others who are responsible for digital collections to create attractive, feature-rich websites that highlight these collections.

Home Page: http://library.stanford.edu/blogs/digital-library-blog/2014/06/stanford-university-libraries-completes-first-phase-development

License: Other

Ruby 79.46% JavaScript 15.75% CSS 4.79%

spotlight's Introduction

spotlight

Build Status | Coverage Status | Gem Version | Release Notes | Design Documents

Spotlight is intended to enable librarians, curators, and others who are responsible for digital collections to create attractive, feature-rich websites that feature these collections. The curator should be able to use Spotlight to produce a website that highlights a digital collection, drawn from a digital library repository, entirely on his or her own, without programming. The development and ongoing management of the website should be relatively simple and follow familiar conventions for producing online content (e.g., similar to writing and managing a blog or working with a content management system).

Demo Videos

Tests

Run tests:

$ rake

Installation

To bootstrap a new Rails application:

$ rails new app-name -m https://raw.githubusercontent.com/sul-dlss/spotlight/master/template.rb

or

$ rake rails:template LOCATION=https://raw.githubusercontent.com/sul-dlss/spotlight/master/template.rb

Or do it manually:

Add this line to your application's Gemfile:

gem 'blacklight-spotlight'

And then execute:

$ bundle

Then run:

$ rails g spotlight:install

Create an administrator

$ rake spotlight:initialize

Configuration

Blacklight configuration

Spotlight uses your application's Blacklight configuration to provide default values for an exhibit. The Blacklight configuration options are documented on the Blacklight wiki.

Default ActionMailer configuration

Spotlight introduces functionality that depends on being able to send emails to exhibit curators and contacts. Be sure to configure your application's environments appropriately (See the Rails Guide for Action Mailer Configuration ).

Solr Indexing

Spotlight needs the ability to write exhibit-specific content to your Solr index. The default indexing strategy uses Atomic Updates, introduced in Solr 4.x. Note the caveats, limitations and required configuration necessary to use this feature. The rake task spotlight:check:solr will test if your Solr configuration is suitable for Atomic Updates.

If you are unable to use the Atomic Update strategy, your SolrDocument class must implement a #reindex method that can update the document in Solr with the exhibit-specific data provided by #to_solr.

To set up your development environment

Note: rake commands MAY need to be prefixed with bundle exec, depending on your environment.

  1. Clone this repo, cd in and run $ bundle install
  2. Get and configure Jetty/Solr:
    1. $ rake jetty:download
    2. $ rake jetty:unzip
    3. $ rake spotlight:configure_jetty
  3. Generate the internal test application (will be in spec/internal): $ rake engine_cart:generate
  4. Start Jetty $ rake jetty:start (may take a moment, use e.g. $ fuser 8983/tcp or $ ps aux | grep jetty to see when it's actually up)
  5. Index fixtures: TEST_JETTY_PORT=8983 rake spotlight:fixtures
  6. $ cd spec/internal
  7. Run $ rake spotlight:initialize and answer prompts
  8. Start the dev server rails s
  9. Visit http://localhost:3000 and sign in.

spotlight's People

Contributors

cbeer avatar jcoyne avatar jkeck avatar jchristo4 avatar bcail avatar

Watchers

James Cloos avatar  avatar

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.