You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calibre Tour için bağımsız, çok dilli e-mail bildirim servisi.
Özellikler
Özellik
Teknoloji
Framework
Express.js (Node.js)
E-mail
Nodemailer (SMTP)
Template
Handlebars
i18n
4 dil (tr, en, ar, he) + RTL
Validation
Zod
Logging
Pino
Rate Limiting
In-memory token bucket
Dokümantasyon
Swagger/OpenAPI
Deployment
Docker
Desteklenen Diller
Dil
Kod
Yön
Türkçe
tr
LTR
İngilizce
en
LTR
Arapça
ar
RTL
İbranice
he
RTL
Kurulum
# Bağımlılıkları yükle
npm install
# .env dosyasını oluştur ve düzenle
cp .env.example .env
# Geliştirme modunda çalıştır
npm run dev
# Prodüksiyon build
npm run build
npm start
# (Opsiyonel) sık yapılan yazım hatası için alias
npm run sart
# Template ve i18n doğrulama
npm run check:templates
# Preview üretimi (varsayılan: tr,en,ar,he)
npm run generate-previews
# Toplu template gönderimi (varsayılan: dry-run, mail atmaz)
npm run send-all-templates
# Toplu template gönderimi (gerçek SMTP gönderimi)
SEND_LIVE=1 npm run send-all-templates
# Production readiness test paketi
npm run test:prod
npm start komutu derlenmiş çıktıdan çalışır. Bu yüzden önce npm run build çalıştırılmalıdır.
API Endpoints
Tüm e-mail endpointleri Authorization: Bearer <API_KEY> header'ı gerektirir.
# İlk kurulum / yeniden buildcd infrastructure
docker compose up --build -d
# Servis durumunu kontrol et
docker compose ps
# Logları izle
docker compose logs -f notification-service
# Servisi durdur
docker compose down
Swagger Dokümantasyonu
API dokümantasyonuna /docs adresinden erişebilirsiniz.
Environment Variables
Değişken
Zorunlu
Açıklama
PORT
Hayır
Sunucu portu (default: 3000)
NODE_ENV
Hayır
development/production
API_KEY
Evet
API anahtarı
SMTP_HOST
Evet
SMTP sunucu adresi
SMTP_PORT
Hayır
SMTP portu (default: 587)
SMTP_USER
Evet
SMTP kullanıcı adı
SMTP_PASS
Evet
SMTP şifresi
SMTP_SECURE
Hayır
TLS kullanımı (default: false)
SMTP_FROM
Evet
Gönderen e-posta adresi
LOG_LEVEL
Hayır
debug/info/warn/error
PREVIEW_LOCALES
Hayır
Preview locale listesi (örn: tr,en)
SEND_LOCALES
Hayır
Toplu gönderimde kullanılacak locale listesi (default: en)
SEND_TEMPLATES
Hayır
Toplu gönderimde kullanılacak template listesi (örn: welcome,password-reset)
SEND_LIVE
Hayır
1/true ise gerçek SMTP gönderimi yapar (default: kapalı)
SEND_DRY_RUN
Hayır
1/true ise mail göndermez, sadece render kontrolü yapar