Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 736 Bytes

File metadata and controls

30 lines (20 loc) · 736 Bytes

StayReal Notifications

A service that sends notifications to StayReal users through FCM (Firebase Cloud Messaging) and APNS (Apple Push Notification Service).

How does it work ?

It polls the last moment endpoint every 5 seconds on every region known and sends a notification whenever a change is detected.

How to run it for development ?

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

What about production ?

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