Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Curl-example.text
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
curl --request POST \
--url http://localhost:8580/transaction \
--header 'content-type: application/json' \
--data '{
"accountExternalIdDebit": "c2b1e1f1-6a0d-4c61-9a47-2c4e91b8a123",
"accountExternalIdCredit": "b7a2d0c9-9b12-4d38-8e13-2d1a7b9c4567",
"tranferTypeId": 1,
"value": 1200
}'
2 changes: 2 additions & 0 deletions antifraud/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf
33 changes: 33 additions & 0 deletions antifraud/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
3 changes: 3 additions & 0 deletions antifraud/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
wrapperVersion=3.3.4
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
21 changes: 21 additions & 0 deletions antifraud/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM maven:3.9.6-eclipse-temurin-21 AS build
WORKDIR /app

# Copiamos el pom.xml y descargamos las dependencias (cache optimization)
COPY pom.xml .
RUN mvn dependency:go-offline

# Copiamos el código fuente y generamos el archivo JAR
COPY src ./src
RUN mvn clean package -DskipTests

# Etapa 2: Run (Ejecución)
# Usamos una imagen ligera de JRE 21 para correr la app
FROM eclipse-temurin:21-jre-jammy
WORKDIR /app

# Copiamos el JAR generado en la etapa anterior
COPY --from=build /app/target/*.jar app.jar

# Ejecutamos la aplicación
ENTRYPOINT ["java", "-jar", "app.jar"]
295 changes: 295 additions & 0 deletions antifraud/mvnw

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading