https://github.com/mlibrary/alma-events
https://github.com/mlibrary/alma-events
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mlibrary/alma-events
- Owner: mlibrary
- License: other
- Created: 2021-03-03T13:11:09.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-07T14:18:10.000Z (over 1 year ago)
- Last Synced: 2025-01-23T21:53:12.434Z (over 1 year ago)
- Language: Ruby
- Size: 616 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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:
* [aim-kube](https://github.com/mlibrary/aim-kube)
* [search-kube](https://github.com/mlibrary/search-kube)