Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ososuna/email-api

✉️ Email API with Java Spring
https://github.com/ososuna/email-api

docker java maven smtp spring

Last synced: 3 days ago
JSON representation

✉️ Email API with Java Spring

Awesome Lists containing this project

README

        

# Email API
✉️ Email API with Java Spring

# Email APP
This API is consumed by the Email APP. You can find the Email APP here:
https://github.com/ososuna/email-app.git

## Requirements
For building and running the application you need:

- [JDK 11.0](https://www.oracle.com/mx/java/technologies/javase/jdk11-archive-downloads.html)
- [Maven 3](https://maven.apache.org)
## Running the application locally

There are several ways to run a Spring Boot application on your local machine. One way is to execute the `main` method in the `dev.ososuna.email.EmailApplication` class from your IDE.

Alternatively you can use the [Spring Boot Maven plugin](https://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-maven-plugin.html) like so:

```shell
mvn spring-boot:run
```
## Try it out with Docker

First, build the application:

```shell
mvn package
```

Then you need to build the Docker image:

```shell
docker build -t email-api .
```

Now you can run the image:

```shell
docker run --name email-api -p 3001:3001 email-api
```

## Architecture Diagram