Notify is a service for sending SMS, Emails and Push notifications using a unified interface.
115
Notify is a notification SaaS for sending SMS, Emails and Push notifications on your behalf. Delivers your alerts ad notifications to different service providers using a unified interface, out of the box.
Notify has been integrated with:
| Feature | 3rd Party Provider |
|---|---|
| SMS |
By default, the SPRING_PROFILES_ACTIVE environment variable is set to standalone. Other alternative modes to be availed soon are stateless, headless and saas.
You will need to create an account and generate the keys from the respective service providers. Set them to match corresponding environment variables at runtime:
| Environment variable | Source |
|---|---|
| infobip.key | Infobip |
| infobip.baseUrl | Infobip |
| africastalking.username | Africa's Talking |
| africastalking.key | Africas' Talking |
docker run \
-e SPRING_PROFILES_ACTIVE=standalone \
-e africastalking.username=*username* \
-e africastalking.key=*africas-talking-key* \
-e infobip.key=*infopib-key* \
-e infobip.baseUrl=*infobip-base-url* \
--publish *host-port*:8008 notify:latest
NB: replace the values between asterisks(*) with actual values and remember to omit the asterisks(*) in your command.
Example:
i. Run with Africa's Talking alone
docker run \
-e SPRING_PROFILES_ACTIVE=standalone \
-e africastalking.username=username \
-e africastalking.key=atsk_blahblah \
--publish 8080:8008 notify:alpha1
NB: to run with InfoBip alone remember to only include the infobip.key and infobip.baseUrl in your docker command.
curl -X 'POST' 'http://localhost:8080/notify/notify/send/message/' \
-H 'X-TENANT-ID: test-client' \
-H 'Content-Type: application/json' \
-d '{
"text": "hello world",
"recepient": "+254727442573",
"message_id": "12221231"
}'
http://localhost:/notify/swagger-ui/index.html
http://localhost:/notify/feature-flags/index
spring-boot-actuator to monitor the application's health as well gather metrics relating to its performance. Below are examples of actuator endpoints that can be accessed via a GET request
Endpoint Description /actuator/health Show the application health status /actuator/metrics Display performance metrics
Prometheus to monitor the performance and health of the applicationContent type
Image
Digest
sha256:f8934915d…
Size
186.5 MB
Last updated
over 1 year ago
docker pull zeguru/notify:alpha1