Skip to content

add sms service#394

Open
Ayinkx1 wants to merge 3 commits into
MindFlowInteractive:mainfrom
Ayinkx1:feat/103-achievement-service-setup
Open

add sms service#394
Ayinkx1 wants to merge 3 commits into
MindFlowInteractive:mainfrom
Ayinkx1:feat/103-achievement-service-setup

Conversation

@Ayinkx1

@Ayinkx1 Ayinkx1 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Closes #358


Summary

This PR adds a new standalone microservices/sms-service for SMS-based verification codes, alerts, and time-sensitive notifications.

What Changed

  • scaffolded a dedicated NestJS sms-service
  • added SMS message, receipt, OTP, and template persistence models
  • implemented provider abstraction with twilio, sns, and mock providers
  • added secure OTP generation and verification with hashing, expiry, and attempt limits
  • added Handlebars-based SMS template creation, rendering, and preview endpoints
  • implemented scheduled SMS dispatch with retry backoff and automatic due-message polling
  • added delivery receipt confirmation endpoints and receipt history tracking
  • added phone number normalization/validation with rate limiting per phone number
  • added SMS history and analytics endpoints
  • added Docker and environment setup plus service README
  • added e2e coverage using sqljs and the mock SMS provider

Verification

  • cd microservices/sms-service
  • npm run build
  • npm run test:e2e

Notes

  • the service defaults to the mock provider for local development
  • real providers can be enabled through .env using Twilio or AWS SNS credentials
  • OTP responses only expose debugCode when SMS_DEBUG_EXPOSE_CODES=true

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@Ayinkx1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SMS and Text Messaging Service Setup

1 participant