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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/
target/
test-santander-api.iml
Binary file added .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
1 change: 1 addition & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG DEPENDENCY=target/dependency
COPY ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY ${DEPENDENCY}/META-INF /app/META-INF
COPY ${DEPENDENCY}/BOOT-INF/classes /app
ENTRYPOINT ["java","-cp","app:app/lib/*","dev/wellison/santander/Application"]
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Show me the code

### # Como rodar:

Primeiramente, ir na pasta raiz do projeto e compilar com o maven
```
./mvnw clean install
```

Depois executar o Docker

```
docker-compose up --build
```

As chamadas podem ser importadas no SoapUI, através do arquivo `REST-Project-1-soapui-project.xml`

### # DESAFIO:

API REST para Gestão de Gastos!
Expand Down
30 changes: 30 additions & 0 deletions REST-Project-1-soapui-project.xml

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '2.2'
services:
app:
build: .
ports:
- 8080:8080
networks:
- api-santander
links:
- "db:redis"
db:
image: "redis:alpine"
hostname: redis
ports:
- "6379:6379"
networks:
- api-santander
networks:
api-santander:
driver: bridge

233 changes: 233 additions & 0 deletions mvnw

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

Loading