An open API service indexing awesome lists of open source software.

https://github.com/mlibrary/alma-events


https://github.com/mlibrary/alma-events

Last synced: about 1 year ago
JSON representation

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)