This is an example of a Blacklight powered application with minimal configuration.
This runs in Docker.
There is a compose.yaml file that can be used to run the application locally. It defines the Solr services required to run the application.
You must build the application by running docker compose build app
.
Then you can run the services by running docker compose up solr
.
In another window run:
SECRET_KEY_BASE=1 docker compose up app
Then you should be able to access the application at http://localhost:3000.
If you'd like to connect to the Rails console, run:
docker compose exec app bin/rails console
Add some documents to the Solr index by running:
bin/rake blacklight:index:seed
To rebuild cleanly, you may need to run docker compose down --volumes --rmi all
before rebuilding.
You can download and run the pre-built image by running:
docker pull ghcr.io/projectblacklight/demo.projectblacklight.org:latest
docker volume create my-data-volume
docker run -p 3000:3000 -v my-data-volume:/rails/storage ghcr.io/projectblacklight/demo.projectblacklight.org:latest`