Project of an email sending microservice developed in the microservice creation course using a hexagonal architecture of Michelli Brito's youtube channel.
- Java
- JDK 11
- Maven
- Spring Boot
- Spring Data JPA
- Spring Validation
- Java Mail Sender
- RabbitMQ
- Spring AMQP
- PostgreSQL
- Mapstruct
Clone the repository.
$ git clone https://github.com/denilsonssj/ms_email.git
First, make sure you use JDK version 11 or higher. You can download this version at this link.
spring:
mail:
host: "my-smtp-server.com"
port: 587
username: "username"
password: "password"
properties:
mail:
smtp:
auth: true
starttls:
enable: true
rabbitmq:
queue: ms.email
rabbitmq:
uri: amqps://***************/******
database:
config:
url: "jdbc:postgresql:/127.0.0.1:5432/ms_email"
username: "postgres"
password: "postgres"
driver-classname: "org.postgresql.Driver"
springdoc:
version: "@org.springdoc.version@"
swagger-ui:
path: /swagger-ui.html
show-actuator: true
server:
port: 9001
$ ./mvnw install clean -U -D skipTests
$ ./mvnw spring-boot:run
$ ./mvnw package
The demo project can be viewed here.