Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pulibrary/pulmap
Princeton University Library Geoblacklight application.
https://github.com/pulibrary/pulmap
Last synced: 3 months ago
JSON representation
Princeton University Library Geoblacklight application.
- Host: GitHub
- URL: https://github.com/pulibrary/pulmap
- Owner: pulibrary
- License: apache-2.0
- Created: 2014-11-10T17:20:37.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T19:31:56.000Z (4 months ago)
- Last Synced: 2024-09-17T00:45:25.097Z (4 months ago)
- Language: Ruby
- Size: 21.5 MB
- Stars: 8
- Watchers: 14
- Forks: 2
- Open Issues: 102
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - pulibrary/pulmap - Princeton University Library Geoblacklight application. (others)
README
Pulmap
======GeoBlacklight for Princeton University Library
[![CircleCI](https://circleci.com/gh/pulibrary/pulmap.svg?style=svg)](https://circleci.com/gh/pulibrary/pulmap)
[![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)](https://github.com/pulibrary/pulmap)### Initial Setup
```sh
git clone https://github.com/pulibrary/pulmap.git
cd pulmap
bundle install
yarn install
```### Setup server
1. Install Lando DMG from https://github.com/lando/lando/releases
1. To start: `rake servers:start`
1. For test:
- `bundle exec rspec`
1. For development:
- `rails s`
- Access Pulmap at http://localhost:3000/
1. To stop: `rake servers:stop` or `lando stop`### Reindex from figgy
The reindex is triggered on the figgy side.
## Production
```
$ ssh deploy@figgy-worker-prod1
$ tmux new -t [yourname]
$ cd /opt/figgy/current
$ BULK=true bundle exec rails c
> GeoResourceReindexer.reindex_geoblacklight
```## Staging
```
$ ssh deploy@figgy-web-staging1
$ tmux new -t [yourname]
$ cd /opt/figgy/current
$ BULK=true bundle exec rails c
> GeoResourceReindexer.reindex_geoblacklight
```It takes a few minutes to get all the complete georesources. Then it invokes the
updated event on each, which sends them to rabbitmq.Then you'll start to see output like "Indexed into GeoBlacklight:..."
We usually run this overnight.
### Auto-update from external services
Pulmap can listen for events published on a RabbitMQ fanout exhange. In order to use them, do the
following:1. Configure the `events` settings in `config/pulmap.yml`
2. Run `WORKERS=GeoblacklightEventHandler rake sneakers:run`This will subscribe pulmap to the events and update geoblacklight records when they're
created, updated, or deleted.