A server that listens for webhook posts from Alma.
Clone the repo
git clone [email protected]: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.
docker compose run --rm web bundle exec rspec
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
The Kubernetes deployment configuration lives in in the environments/alma-events
directory in: