Skip to content

Latest commit

 

History

History
executable file
·
43 lines (34 loc) · 1.27 KB

README.md

File metadata and controls

executable file
·
43 lines (34 loc) · 1.27 KB

Gmail as a microservice

An OMG service for Gmail, it allows to send and recive emails.

Open Microservice Guide

OMG CLI

OMG

  • omg validate
omg validate
  • omg build
omg build

Test Service

  • Test the service by following OMG commands

CLI

Send Email
$ omg run send -a from=<SENDER_GMAIL_ADDRESS> -a password=<GMAIL_ACCOUNT_PASSWORD> -a to=<RECIVER_EMAIL_ADDRESS> -a subject=<EMAIL_SUBJECT> -a message=<EMAIL_MESSAGE_BODY> -e SMTP_HOST="smtp.gmail.com" -e SMTP_PORT="587"

License

Docker

Build

docker build -t microservice-gmail .

RUN

docker run -p 3000:3000 microservice-gmail