Skip to Content
Notification ServiceGetting Started

Getting Started

Prerequisites: Node.js and npm.

Copy env and install

cd notification-service cp .env.example .env # Fill in credentials and recipient lists npm install

Run in development

npm run start:dev

The service listens on PORT (default 3010). SQLite data is written to ./data/notifications.db.

When NOTIFICATION_API_KEY is set, protect /notifications with Authorization: Bearer <key> or X-API-Key: <key>.

Smoke send

curl -X POST http://localhost:3010/notifications \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $NOTIFICATION_API_KEY" \ -d '{ "subject": "EUR/USD signal", "message": "<b>BUY</b> EUR/USD @ 1.0850", "contentType": "html", "channels": ["EMAIL", "TELEGRAM", "SMS"], "source": "fu-strategy" }'

Next steps

Last updated on