leticia-marques / teste_java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

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.

Features

  • 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.

Getting Started

Prerequisites

Before you begin, make sure you have the following software and tools installed:

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/leticia-marques/teste_java.git
    
  2. Run docker-compose.yaml

    docker compose up -d
  3. Navigate to the project directory:

    cd teste_java
  4. Build the project using Maven:

    ./mvnw spring-boot:run
    

Usage

For routes and body params go to http://localhost:8080/swagger-ui/index.html

Configuration

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.

About


Languages

Language:Java 100.0%