Adrian-Samuel / serverless-messenger-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Messenger Service

This is a serverless repo to send texts using http endpoint using event driven architecture

Endpoint in question - /sms/send Service used to send sms - AWS sns

Example flow

architecture-flow

TODOs

  1. Tests

Unit Tests Cases

  • What happens when number is invalid
  • What happens if it's invalid
  • What happens when the number is empty
  • What happens when the message is empty
  • What happens when it's not empty

Integration Tests Cases

  • Assert message and status code on http /post
    • Valid response
    • Invalid response
  1. Fix Webpack Setup

    • Get serverless plugin to work
  2. Use Middleware from Middy to implement out middleware pattern

About


Languages

Language:TypeScript 65.0%Language:JavaScript 35.0%