This service receive and process transaction's emails. Checkout API documentation at: http://localhost:8085/swagger-ui/index.html
- Java 17
- MySQL 8.0
- Docker (optional)
It is important to ensure that the environment variables are properly configured before running the API. If you run automated tests, you must configure the variables for that setup.
How to configure environment variables in IntelliJ? Below, you will find a list of the required environment variables to configure and run the API:
The URL of the MySQL database to which the API will connect. It should follow the following format and replace the corresponding values: jdbc:mysql://{db_host}:{db_port:3306}/{db_name}
The URL of the MySQL test database to which the API will connect. It should follow the following format and replace the corresponding values: jdbc:mysql://{db_host}:{db_port:3306}/{test_db_name}
The username used to authenticate the database connection.
The password used to authenticate the database connection.
Email service user.
Email application password.
The port on which the server will run. By default, it uses port 8085.
A list of authorized hosts to make requests to the API. By default, the value http://localhost:4200 is used to allow requests from the web client. Multiple hosts can be specified, separated by commas.
Indicates whether Hibernate should display the SQL queries generated in the console. By default, it uses the value false.
Use docker to create a MySQL server as a container. To do this, run the following command in the root directory of the project:
$ docker-compose upThis will create a MySQL server with the following configuration:
-
Mysql Value Host localhost Port 3306 User user Password pass Database email_processing_service
Note:
- Use
Ctl + Cto stop the container.