Skip to content

whatisnormal/code-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMS Confirmations

2 phase application that generates a code for a unique identifier and sends sms. Useful for marketing campaigns or 2-factor security validations.

Disclaimer: This project represents my first steps using Golang while following the Clean Architecture (HEXA/Ports-n-Adapters) design

Phase 1 - Code generation

  1. Receives a cell phone number (msisdn) from an external client
  2. Generates a unique alfanumeric code and associates with the msisdn.
  3. Returns to the client

Phase 2 - Confirmation

  1. Receives the code generated in phase 1 and checks with the last code for the given msisdn. If matches, returns ok, else incorrect input.

Supported Notifier provider

Twillio

Requires usage of the following command-line arguments

TWILLIO_FROM_MSISDN - The registered phone number.

TWILLIO_ACCOUNT_SID - Your Account service id.

TWILLIO_AUTH_TOKEN - Authorization token.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages