mlibrary / alma-events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alma Webhook

A server that listens for webhook posts from Alma.

Setting up Alma Webhook for development

Clone the repo

git clone git@github.com:mlibrary/alma-events.git
cd alma-events

build web container

docker compose build web

bundle install gems to a docker volume

docker compose run --rm web bundle install

generate ssh-keys

./set_up_development_ssh_keys

start containers

docker compose up -d

In a browser, go to http://localhost:4567 to see the website.

Running tests

docker compose run --rm web bundle exec rspec

Trying out message queue

While in development mode and while the app is up one can send a message directly to the message queue by doing the following:

docker compose exec web curl -X POST --data-binary "@PATH_TO_YOUR_MESSAGE_JSON" localhost:4567/send-dev-webhook-message

Kubernetes Configuration

The Kubernetes deployment configuration lives in in the environments/alma-events directory in:

About

License:Other


Languages

Language:Ruby 90.7%Language:Dockerfile 5.3%Language:Shell 4.0%