The Safeway Teste Java Project is a Java-based application that facilitates deposit and withdrawal operations for clients and companies. It utilizes JPA for the database, Java, and Spring Boot for its functionality.
- Deposit and Withdrawal Operations: Users can make deposits and withdrawals from their accounts.
- JPA Database: Utilizes JPA for efficient and reliable database operations.
- Email Notifications: Sends email notifications using the SendGrid API when deposit and withdrawal operations are made.
- Webhook Integration: Makes API calls to a specified webhook URL webhook.site whenever transactions occur.
Before you begin, make sure you have the following software and tools installed:
-
Clone the repository to your local machine:
git clone https://github.com/leticia-marques/teste_java.git
-
Run docker-compose.yaml
docker compose up -d
-
Navigate to the project directory:
cd teste_java
-
Build the project using Maven:
./mvnw spring-boot:run
For routes and body params go to http://localhost:8080/swagger-ui/index.html
Before running the project, configure the application properties by filling in the necessary variables in the applications.properties file:
- safeway.teste.notification.email: The email address used for sending notifications.
- safeway.teste.notification.email-to: The email address that will receive notifications.
- safeway.teste.notification.url: The URL provided by [webhook.site] for making API calls.
- safeway.teste.notification.api-key: The API key generated from [app.sendgrid.com] for email notifications.