No description
- TypeScript 97.3%
- Dockerfile 2.7%
|
All checks were successful
sync to codeberg / codeberg (push) Has been skipped
|
||
|---|---|---|
| .github | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
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