This project scrapes menu data from PACE (Axel Springer canteen) and dispatches it to one or multiple webhooks.
This project can be deployed as a cloud function, daemon or Rest API.
You can configure the run type via application.properties
application.deploymenttype={DEPLOYMENT_TYPE}
Available deployment types:
CLOUD_FUNCTIONInvoked via AWS' Lambda or GitHub Actions, for exampleDAEMONRuns in the background and schedules operations via cron jobRESTRuns when invoked via Rest API
By default, the project runs as a cloud function and is invoked via a GitHub Actions workflow on a CRON schedule.
gradlew run
Following properties in src/main/resources/application.properties must be set manually
or injected via environment (recommended)
| PROPERTY | ENVIRONMENT VARIABLE |
|---|---|
pace.apikey |
PACE_API_KEY |
webhook.endpoint.urls |
WEBHOOK_URLS |
webhook.endpoint.types |
WEBHOOK_TYPES |
gradlew bootRun
gradlew test
For the REST endpoints to be enabled, please make sure that the deployment type is set to REST
Fetch menu and dispatch via WebHooks
Health check