A service that sends notifications to StayReal users through FCM (Firebase Cloud Messaging) and APNS (Apple Push Notification Service).
It polls the last moment endpoint every 5 seconds on every region known and sends a notification whenever a change is detected.
You must have the following environment variables set:
KEY_ID
: The key ID of the APNs key.TEAM_ID
: The team ID of the APNs key.
pnpm install
tsx ./src/index.ts
We provide a Dockerfile
and a docker-compose.yml
file to run the script in a container.
# Start !
docker compose up --build -d
# Stop !
docker compose down