![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
spotlight-frontend
Advanced tools
|
| Release Notes | Design Documents
Spotlight is open source software that enables librarians, curators, and other content experts to easily build feature-rich websites that showcase collections and objects from a digital repository, uploaded items, or a combination of the two. Spotlight is a plug-in for Blacklight, an open source, Ruby on Rails Engine that provides a basic discovery interface for searching an Apache Solr index.
Read more about what Spotlight is, our motivations for creating it, and how to install and configure it in the wiki pages. You might also want to take a look at our demo videos, especially the tour of a completed Spotlight exhibit and the walkthrough of building an exhibit with Spotlight.
To bootstrap a new Rails application:
$ SKIP_TRANSLATION=1 rails new app-name -m https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb
or from an existing Rails application:
$ SKIP_TRANSLATION=1 rails app:template LOCATION=https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb
During this process you will be prompted to enter an initial administrator email and password (this is a super-admin that can administer any exhibit in the installation). If you choose not to create one, the first user will be given administrative privileges.
Change directories to your new application:
$ cd app-name
Run the database migrations:
$ SKIP_TRANSLATION=1 rake db:migrate
Start Solr (possibly using solr_wrapper
in development or testing):
$ solr_wrapper
and the Rails development server:
$ rails server
Go to http://localhost:3000 in your browser.
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).
See the Spotlight wiki for more detailed information on configuring Spotlight.
Spotlight:
Our $ rake ci
and $ rake spotlight:server
tasks utilize Solr and the testing rails app automatically.
See more detailed instructions for development environment setup at "Contributing to Spotlight"
# because of how docker compose handles named images, running `docker compose up --build` will error when the Rails images have not been built locally
docker compose build
docker compose up
$ rake
This utilizes Solr and the testing rails app automatically.
Spotlight ships with i18n-tasks
to help manage translations. To run a translation health check:
$ bundle exec i18n-tasks health
See developer-facing instructions for enabling translation on the wiki.
The JavaScript is built by npm from sources in app/javascript
into a bundle
in app/assets/javascripts/spotlight/spotlight.js
. This file should not be edited
by hand as any changes would be overwritten. When any of the JavaScript
components in the gem are changed, this bundle should be rebuilt with the
following steps:
npm install
to download dependenciesnpm run prepare
to build the bundleYou only need to update package.json
and prepare/publish the JavaScript package for npm if there are changes to the JavaScript.
version.rb
and package.json
to set the new versionnpm run prepare
to build the JavaScript bundlenpm i --package-lock-only
to update the version in package-lock.json
git commit -am "Bump version to X.X.X"
bundle exec rake release
npm publish
to push the JavaScript package to https://npmjs.org/package/spotlight-frontendSee "Updating the JavaScript bundle" above for more details.
FAQs
Exhibits plugin for blacklight
The npm package spotlight-frontend receives a total of 40 weekly downloads. As such, spotlight-frontend popularity was classified as not popular.
We found that spotlight-frontend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.