This is a email service for sending emails to customers.
Please, be sure that you set up all properties in application.yml
file.
Needed property to set up:
- email.sender.user.from - your email addres
- email.sender.provider.sendgridApiKey - https://app.sendgrid.com api key
This application is packaged as a war which has Tomcat 8 embedded. No Tomcat or JBoss installation is necessary. You run it using the java -jar command.
- Clone repository
- JDK 1.8 and maven 3.x
- You can build project by
mvn clean install
will run integration test - Once you have successful build you can run application by:
mvn spring-boot:run
usesapplication.property/yml
mvn spring-boot:run -Drun.profiles=local
usesapplication-local.property/yml
(You should add local property in case of need)
Default port is 8090
(customize it in application.yml).
Please, use http://localhost:8090/email-sender/swagger-ui.html
to have a look at API with UI
- Test
- JsonPath uses for checking the response for integration tests
- Integration Testing in Spring examples how to implement integration tests
- Properties