Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avm-sistemas/nestjs-mail-broker

Build a broker-type system that consists of a microservice for sending emails to a queue service and another microservice that listens to a message pattern and sends it itself via SMTP so that it can be scaled and the message is not lost if the sending fails.
https://github.com/avm-sistemas/nestjs-mail-broker

hacktoberfest maildev nestjs rabbitmq rabbitmq-consumer self-hosted swagger

Last synced: 11 days ago
JSON representation

Build a broker-type system that consists of a microservice for sending emails to a queue service and another microservice that listens to a message pattern and sends it itself via SMTP so that it can be scaled and the message is not lost if the sending fails.

Awesome Lists containing this project

README

        

# NestJs Mail Broker

## Concept

Build a broker-type system that consists of a microservice for sending emails to a queue service and another microservice that listens to a message pattern and sends it itself via SMTP so that it can be scaled and the message is not lost if the sending fails.

## Layers

- [RabbitMQ](https://www.rabbitmq.com/)
- [Maildev](https://maildev.github.io/maildev/)
- [Broker Emiter Rest API](broker-emiter/README.md)
- [Broker Consumer](broker-consumer/README.md)

## Build & Publish

```bash
> git clone https://github.com/avmesquita/nestjs-mail-broker.git
> cd nestjs-mail-broker
> docker-compose build --no-cache --pull
> docker-compose -d up --force-recreate
```

## Development Documentation

- [Broker Emiter Rest API](broker-emiter/documentation/index.html)

- [Broker Consumer](broker-consumer/documentation/index.html)

## Resources

![Broker Emitter](assets/broker-emiter.png)

![Broker Consumer](assets/broker-consumer-console-log.png)

![RabbitMQ Queues](assets/rabbitmq-queues.png)

![Maildev Inbox](assets/maildev-delivered.png)