GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - cherryblux/mail-queuing-microservice: ๐Ÿงฉ Node Microservice (Email Queue system) using Docker & RabbitMQ & Nodemailer

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
api-service
api-service
 
 
email-service
email-service
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

๐Ÿ“ฌ Microservice Email Queue with Docker, RabbitMQ & Nodemailer

Docker Node.js RabbitMQ TypeScript


โš™๏ธ Tech Stack

  • Docker โ€“ Orchestrates services
  • Express.js โ€“ API
  • RabbitMQ โ€“ Queue system
  • Nodemailer โ€“ Email sending
  • TypeScript โ€“ Type-safety

๐Ÿš€ Features

  • โœ… Email queue with RabbitMQ
  • ๐Ÿ“ฌ Email sending with Nodemailer
  • ๐Ÿ”ง Microservice architecture
  • ๐Ÿณ Easily deployable with Docker Compose

๐Ÿงฉ Service Structure

  • rabbitmq - Message broker used as queue backbone
  • api-service - Accepts email requests and publishes to queue
  • email-service - Consumes jobs from queue and sends emails

๐Ÿ“ฆ Installation

git clone https://github.com/luna-zx/mail-queuing-microservice.git

๐Ÿงช Setting Up

docker-compose.yml :

rabbitmq:
    image: rabbitmq:3-management
    ports:
      - "5672:5672"
      - "15672:15672"
    environment:
      RABBITMQ_DEFAULT_USER: your_uname # your RabbitMQ user
      RABBITMQ_DEFAULT_PASS: your_pass # your RabbitMQ pass

api-service/.env :

API_PORT = # your api port

RABBITMQ_URL = amqp://your_uname:your_pass@rabbitmq

email-service/.env :

SMTP_HOST = # your SMTP HOST 
SMTP_PORT = # your SMTP PORT
SMTP_USER = # your SMTP USER
SMTP_PASS = # your SMTP PASSWORD

RABBITMQ_URL = amqp://your_uname:your_pass@rabbitmq

โ–ถ๏ธ Deploy

Docker Compose :

docker compose up --build

๐Ÿ“จ Send a Test Email

curl -X POST http://localhost:your_api_port/send-email \
-H "Content-Type: application/json" \
-d '{ "to": "[email protected]", "subject": "Hello from sigma boy", "html": "<p>Test</p>" }'

Or :

axios.post("http://localhost:your_api_port/send-email", {
    to: "[email protected]",
    subject: "Hello from sigma boy",
    html: "<p>Test</p>"
})

About

๐Ÿงฉ Node Microservice (Email Queue system) using Docker & RabbitMQ & Nodemailer

Topics

dockeremailexpressmicroservicenodemailerqueuingrabbitmqtypescript

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.